Skip to main content

IAmmalgamERC20

Git Source

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

NameTypeDescription
toaddressThe account to deliver the tokens to.
amountuint256The 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

NameTypeDescription
fromaddressThe account to deduct the tokens from.
amountuint256The number of tokens to be burned.