admin管理员组文章数量:1406911
In Aptos, we have 2 types of tokens: Coin (e.g., APT) and Fungible Assets (USDC by Circle).
How can I efficiently receive both types in my smart contract?
Instead of a function that allows <CoinType>, a parameter of fungible address and a parameter to choose which type of token the User wants to deposit. Then, if the User wants to deposit Coin, he will input the valid <CoinType> and leave the fungible asset parameter as 0; else, he will leave the CoinType empty (a place holder coin), input a valid fungible asset?
本文标签: blockchainUsing both CoinType and Fungible Asset in Aptos MoveStack Overflow
版权声明:本文标题:blockchain - Using both CoinType and Fungible Asset in Aptos Move - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744996850a2636726.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论