Skip to main content

MXCToken

This is MXC's governance and fee token.

Mint​

event Mint(address account, uint256 amount)

Burn​

event Burn(address account, uint256 amount)

TKO_INVALID_ADDR​

error TKO_INVALID_ADDR()

init​

function init(string _name, string _symbol, address _addressManager) external

Initializer to be called after being deployed behind a proxy. Based on our simulation in simulate/tokenomics/index.js, both amountMintToDAO and amountMintToDev shall be set to ~150,000,000.

transfer​

function transfer(address to, uint256 amount) public returns (bool)

transferFrom​

function transferFrom(address from, address to, uint256 amount) public returns (bool)

mint​

function mint(address account, uint256 amount) public

Mints tokens to the given address's balance. This will increase the circulating supply.

Parameters​

NameTypeDescription
accountaddressThe address to receive the tokens.
amountuint256The amount of tokens to mint.

minters​

mapping(address => bool) minters

HasMinted​

error HasMinted()

mint​

function mint(address to) public

burn​

function burn(address account, uint256 amount) public

Burn tokens from the given address's balance. This will decrease the circulating supply.

Parameters​

NameTypeDescription
accountaddressThe address to burn the tokens from.
amountuint256The amount of tokens to burn.