ZivoeTrancheToken.sol
Native Tranche Token
Last updated
Native Tranche Token
Last updated
This ERC20 contract outlines the tranche token functionality.
This contract should support the following functionalities:
Mintable.
Burnable.
Inherit the ownable library to handle temporary minterRole management.
This contract was adopted from the OpenZeppelin ERC20 Library.
For further documentation, see:
mapping(address => bool)
_isMinter
Whitelist for accessibility to mint() function, exposed in isMinter() view function.
isMinter() - Returns the whitelist status of account for accessibility to mint()
function.
burn() - Burns $zTT (Zivoe Tranche Tokens).
changeMinterRole() - Update an account's permission for access to mint()
function.
mint() - Mints $zTT (Zivoe Tranche Tokens).
isMinter()
Returns the whitelist status of account for accessibility to mint()
function.
address
account
The amount to deposit.
Returns
bool
minter
Returns true if account is allowed to access the mint()
function.
burn()
Burns $zTT (Zivoe Tranche Tokens).
uint256
amount
The number of $zTT tokens to burn.
changeMinterRole()
Update an account's permission for access to mint()
function.
address
account
The account to change permission for.
bool
allowed
The permission to give account (true = permitted, false = prohibited).
Emits the MinterUpdated() event.
mint()
Mints $zTT (Zivoe Tranche Tokens).
address
account
The account to mint tokens for.
uint256
amount
The amount of $zTT tokens to mint for account.
MinterUpdated()
Emitted during changeMinterRole()
address
True
account
The account who is receiving or losing the minter role.
bool
False
allowed
If true, account receives minter privlidges, if false the account loses minter privlidges.