- What are the benefits of setting a token standard like ERC20?
ERC20 is a set of standards ensuring universal compatibility/interoperability/frictionless operation. It defines how we programme tokens. You can programme a token any way you want in Solidity, but important to have a framework of standards. This ensures for example that all exchanges and wallets will be able to support the tokens from the moment they are released.
- What functions are in the ERC20 Token Standard Interface and what do they do?
2 examples from the lesson:
âtotalsupplyâ - determines the total supply of a token
âbalanceOf(address account)â - enables a exchange or a person to query the balance held in a wallet, e.g. via a block explorer.
Other examples from the Medium article:
âTransferâ, âapproveâ and âtransferFromâ - approving and enabling transfer of tokens from one address to another.
âallowanceâ provides the number of tokens allowed to be transferred from a given address by another given address.