IAmmalgamERC20
Inherits: IERC20, IERC20Metadata, IERC20Permit
This interface extends IERC20, IERC20Metadata, and IERC20Permit, and defines mint and burn functions.
Functions
mint
Creates amount
tokens and assigns them to to
address, increasing the total supply.
Emits a IERC20.Transfer event with from
set to the zero address.
function mint(address to, uint256 amount) external;
Parameters
Name | Type | Description |
---|---|---|
to | address | The account to deliver the tokens to. |
amount | uint256 | The number of tokens to be minted. |
burn
Destroys amount
tokens from from
address, reducing the total supply.
Emits a IERC20.Transfer event with to
set to the zero address.
function burn(address from, uint256 amount) external;
Parameters
Name | Type | Description |
---|---|---|
from | address | The account to deduct the tokens from. |
amount | uint256 | The number of tokens to be burned. |