Skip to main content

AmmalgamERC20Controller

Git Source

Inherits: IAmmalgamERC20Controller

Wrapper of the ERC20 tokens that has some functionality similar to the ERC1155.

State Variables

tokenX

address public immutable tokenX;

tokenY

address public immutable tokenY;

_tokens

IAmmalgamERC20[6] private _tokens;

Functions

constructor

constructor();

tokens

function tokens(TokenType tokenType) public view override returns (IAmmalgamERC20);

totalSupply

function totalSupply(TokenType tokenType) public view override returns (uint256);

balanceOf

function balanceOf(address account, TokenType tokenType) public view override returns (uint256);

mintId

function mintId(TokenType tokenType, address to, uint256 amount) internal;

burnId

function burnId(TokenType tokenType, address from, uint256 amount) internal;

Errors

AmmalgamNewTokensFailed

error AmmalgamNewTokensFailed();