Skip to content

Solidity API

IPropsERC20

mint

solidity
function mint(address to, uint256 amount) external payable

burn

solidity
function burn(address from, uint256 amount) external

approve

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

NameTypeDescription
spenderaddressThe address which will be approved to spend tokens
amountuint256The number of tokens to be approved for spending

Return Values

NameTypeDescription
[0]boolAlways returns true (function should revert on failure)