Fungible Token Standard
Purpose
The Fungible Token Standard is a contract template designed to facilitate the creation and management of fungible tokens on the Stellar network. It provides a flexible and secure framework for defining and managing token standards, enabling developers to create and manage tokens with ease.
Extensions
We provide the below extensions to enhance the capabilities of the Fungible Token Standard.
- Mintable
- Capped
- Burnable
Summary
The FungibleBurnable
trait extends the FungibleToken
trait to provide the
capability to burn tokens.
To fully comply with the SEP-41 specification one have to implement the
this FungibleBurnable
trait along with the [FungibleToken]
trait.
SEP-41 mandates support for token burning to be considered compliant.
Excluding the burn
functionality from the [FungibleToken]
trait
is a deliberate design choice to accommodate flexibility and customization
for various smart contract use cases.
Misc
To comply with the SEP-41 specification, a contract must implement both the FungibleToken
and FungibleBurnable
traits. These traits together provide all the necessary methods to conform to soroban_sdk::token::TokenInterface
,
offering another way to meet the SEP-41 requirements.
For contracts that implement both FungibleToken
and FungibleBurnable
,
and also need to implement TokenInterface
, we provide the impl_token_interface!
macro.
This macro automatically generates the required boilerplate, simplifying the implementation process.