Variable-cap assets are fungible tokens for which additional quantities can be minted after creation.
Write the token smart contract:
Functions
name()
symbol()
decimals()
totalSupply()
balanceOf(account)
transfer(recipient, amount)
allowance(owner, spender)
approve(spender, amount)
transferFrom(sender, recipient, amount)
increaseAllowance(spender, addedValue)
decreaseAllowance(spender, subtractedValue)
_transfer(sender, recipient, amount)
_mint(account, amount)
_burn(account, amount)
_approve(owner, spender, amount)
_setupDecimals(decimals_)
Compile your code into bytecode
Deploy your Variable-cap Asset by sending your code in a transaction to the Fantom network
Navigate to to check that your token has been created
You can use the _mint
function to create additional units of the token
This contract is designed to be unopinionated, allowing developers to access the internal functions in ERC-20 (such as ) and expose them as external functions in the way they prefer. On the other hand, (such as ) are designed using opinionated patterns to provide developers with ready to use, deployable contracts.