Dispatchable Fungible Assets
Smart Contract
Tutorial
DeFi
Learn how to inject custom logic during the withdraw/deposit of fungible assets. Specifically, impose a tax on the transfer of assets.
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.