最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

blockchain - Using both CoinType and Fungible Asset in Aptos Move - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论