[1.] It makes it a lot easier for everyone to be able to create a new smart contract currency and also allow for easy communication between different entities, e.g. wallets.
[2.] What functions are in the ERC20 Token Standard Interface and what do they do?
(a) function totalSupply() public view returns (uint256);
==> It returns the number of all tokens allocated by this contract
(b) function balanceOf(address tokenOwner) public view returns (uint);
==> It returns the current token balance of an account, identified by its ownerâs address.
(c ) function allowance(address tokenOwner, address delegate)
==> It returns the current approved number of tokens by an owner to a specific delegate, as set in the approve function.
(d) function transfer(address receiver, uint numTokens) public returns (bool);
==> It moves numTokens amount of tokens from the ownerâs balance to that of another user, or receiver
(e) function approve(address delegate, uint tokens) public returns (bool);
==> It allows an owner of the contract to approve a delegate account, e.g. the marketplace itself â to withdraw tokens from his account and to transfer them to other accounts.
(f) function transferFrom(address owner, address buyer, uint numTokens) public returns (bool);
==> This is the peer of the approve function, which we discussed above. It allows a delegate approved for withdrawal to transfer owner funds to a third-party account.