I'd like to create a function
(deposit-fungible-v2-burn (account:string amount:decimal token:module{fungible-v2}))
that burns amount
token
s from the account
.
Are there any functions in the fungible-v2
interface for minting/burning coins?
It is perhaps possible to use ROOT
account from the token
contract, but in that case ROOT
would not be an eater account as this account can send(mint) tokens. It is also possible to use custom logic in the token
contract itself, but in that case I would not be able to generalize the function for all fungible-v2
tokens.