- What are the benefits of setting a token standard like ERC20?
The benefits of setting a token standard like ERC20 are that the same standard of code can be used for all the various tokens or ICO’s.
Most of these tokens are actually tokens on top of Etherium or other smart contract platforms.
The ERC20 standard is how we program the tokens - a token can be programmed however you want in solidity, but by having the ERC20 standard means that all developers can create the tokens in exactly the same way.
ERC20 tokens are known as fungible, which means that all tokens are the same.
Because these tokens are laid out in the same way, it means that all exchanges and all wallets will be able to support these wallets from day one - when a new token comes out it is supported by all the exchanges and all the wallets.
Having this token standard - a standard way to program a token, a standard way to deploy tokens on the etherium smart contract platform, has been extremely beneficial for the entire space.
Apparently all ERC20 tokens are all the same and they all have the same value(?)
Another benefit of having this standard is that since it came out in 2017 - 18, many people have been able to launch their own cryptocurrencies.
This means that we can create new currencies, new tokens, new economies. We can create new models and structures. - What functions are in the ERC20 Token Standard Interface and what do they do?
ERC-20 defines two events that must be triggered when the contract takes the relevant action.
The first event is a Transfer() which emits details of approvals of tokens from one address to another.
The second event is Approval() which emits details of approvals from one address to another.
These can be used to keep track of balance and allowance changes for addresses without needing to poll the blockchain.
Minting tokens emits a Transfer() event with the 0 address as the source.
There is no event emitted when tokens are burned.
Due to this ERC-20 token, contracts that burn tokens, commonly transfer() to the 0 address before real burning.