1. What are the benefits of setting a token standard like ERC20?
The benefits of having a token standard like ERC20 is that standards allows you to work successfully across all related and integrated platforms that create continuous functionality. For example, if a non-standard ERC20 token was created then it would not work with any of the major exchanges and wallets.
2. What functions are in the ERC20 Token Standard Interface and what do they do?
The functions in the ERC20 Token Standard are:
-
function totalSupply() - defines the total number of tokens.
-
function balanceOf(address tokenOwner) â gives the total number of tokens in the smart contract.
-
function approve() - smart contract gives approval for recipient to collect tokens from sender.
-
function transfer() - lets smart contract owner send a set amount of tokens to recipient.
-
function transferFrom() - assists in automation of payments transfers to specific accounts.
-
function allowance() - checks the required minimum amount of tokens in the smart contract.