TopupCredit
A contract representing a token used to topup a MACI's voter credits
DECIMALS
uint8 DECIMALS
MAXIMUM_AIRDROP_AMOUNT
uint256 MAXIMUM_AIRDROP_AMOUNT
ExceedLimit
error ExceedLimit()
custom errors
constructor
constructor() public payable
create a new TopupCredit token
airdropTo
function airdropTo(address account, uint256 amount) public
mint tokens to an account
Parameters
Name | Type | Description |
---|---|---|
account | address | the account to mint tokens to |
amount | uint256 | the amount of tokens to mint |
airdrop
function airdrop(uint256 amount) public
mint tokens to the contract owner
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | the amount of tokens to mint |