What is the difference between Coin and FungibleAsset? #208
-
Discord user IDcasimirknight Describe your question in detail.hey i have a doubt
and
What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?N/A Which operating system are you using?N/A Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Coin is the original standard for fungible tokens, similar to ERC-20 in the Ethereum space. It requires passing generic arguments to identify the coins, which is good in some cases, and less so in others. It uses a Fungible Asset is the newer standard for fungible tokens, that allows for anything to be fungible. More specifically, it uses an Object to store in a Primary store. Advantages here is that it does not require generics, instead it requires reference to the fungible asset
These don't specify stablecoins directly associated today. You can take a look at bridged stablecoins from LayerZero, Wormhole, Celer or others. Most of these are today as a Coin standard, but we are planning to have coins to be able to be migrated to fungible asset seamlessly.
For coins, like your example |
Beta Was this translation helpful? Give feedback.
Coin is the original standard for fungible tokens, similar to ERC-20 in the Ethereum space. It requires passing generic arguments to identify the coins, which is good in some cases, and less so in others. It uses a
CoinStore
resource to store coins in an account, but can be moved anywhere (and not dropped).Fungible Asset is the newer standard for fungible tokens, that allows for anything to be fungible. More specifically, it uses an Object to store in a Primary store. Advantages here is that it does not require generics, instead it requires reference to the fungible asset
Metadata
object.