Skip to main content
Version: v1.3_alpha

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

NameTypeDescription
accountaddressthe account to mint tokens to
amountuint256the amount of tokens to mint

airdrop

function airdrop(uint256 amount) public

mint tokens to the contract owner

Parameters

NameTypeDescription
amountuint256the amount of tokens to mint