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