For the best experience, please view this page on a desktop device.

Dispatchable Fungible Assets

View on Github
Smart Contract
Tutorial
DeFi
了解如何在可替代资产的提取 / 存款过程中注入自定义逻辑。对资产转让征税。
Author: Kshitj

Dispatchable Fungible Asset uses the concepts explained (in the recap section below) as building blocks to create new functionality. Namely, it allows developers to inject custom logic during fungible asset transfers, enabling use cases like adding assertions, taxes, time-based locks, automated interest distribution, and much more!

In this example, we will build out a Move smart contract (module) from scratch. In this module, we will impose a tax on every withdraw from a fungible store. All of the features will be implemented with key management and control features using the Fungible Asset Standard.