Appearance
Solidity API
IPropsERC20
mint
solidity
function mint(address to, uint256 amount) external payableburn
solidity
function burn(address from, uint256 amount) externalapprove
solidity
function approve(address spender, uint256 amount) external returns (bool)Sets the amount of tokens that spender is allowed to spend on behalf of the caller
_IMPORTANT: Beware of race conditions - subsequent calls to this function override the current allowance. Use increaseAllowance/decreaseAllowance from ERC20Extended instead. Must emit Approval event. Should revert if:
- spender is zero address
- insufficient balance_
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | The address which will be approved to spend tokens |
| amount | uint256 | The number of tokens to be approved for spending |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bool | Always returns true (function should revert on failure) |