What are the benefits of setting a token standard like ERC20?
What I’ve gathered is the benefits of using the token standard erc20, helps smooth things out and gives a solid foundation to build on and since so much has been built on the standard already, you have a guiding light of sorts to work with. The standard makes whatever tokens built on it fungible which helps with keeping everything smooth as it constantly transitions and circulates. Also it makes it easier for exchanges and wallets to interact with the token since they all have the same standards and and foundation.
What functions are in the ERC20 Token Standard Interface and what do they do?
They’re:
balanceOf()
it provides the balance of any tokens in a wallet.
transfer()
this functions allows the transfer of tokens from address to another. no checks are made by the system so the sender should do there due diligence.
transfer() this function allows for transfers from one user to another, though it isn’t great for paying a smart contract to act out its instructions.
approve() this function goes well together with transferFrom(). approve() gives the token holder another address approval to transfer tokens up to a certain limit, this transfer is known as an allowance.
transferFrom() takes the the amount of tokens approved from the sender to do its job.
allowance() this function allows the funds that passed through approve() function to be finally used. so allowance acts as a middleman.