ERC20Facet
Inherits: IERC20, ERC20Base, Facet
Functions
ERC20_init
name
Returns the name of the token.
symbol
Returns the symbol of the token.
decimals
Returns the decimals places of the token.
transfer
Moves an amount of tokens from the caller's account to another account.
Parameters
Returns
approve
Sets an amount as the allowance of spender over the caller's tokens.
Parameters
Returns
transferFrom
Transferrs an amount of tokens from an account to other using the allowance mechanism.
Amount is deducted from the caller's allowance.
Parameters
Returns
allowance
Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner.
This value changes when {approve} or {transferFrom} are called and is zero by default.
Parameters
totalSupply
Returns the amount of tokens in existence.
balanceOf
Returns the amount of tokens owned by an account.
Parameters