@aragonone/erc20-faucet
v1.0.0
Published
ERC20 token faucet
Downloads
14
Keywords
Readme
ERC20 Token Faucet
ERC20 token faucet contract that can be managed to fund accounts based on a periodic quota.
1. Set quotas
/**
* @notice Set a list of token quotas
* @param _tokens List of ERC20 tokens to be set
* @param _periods List of periods length for each ERC20 token quota
* @param _amounts List of quota amounts for each ERC20 token
*/
function setQuotas(ERC20[] calldata _tokens, uint256[] calldata _periods, uint256[] calldata _amounts) external onlyOwner;
2. Donate
/**
* @notice Donate `@tokenAmount(_token, _amount)`
* @param _token ERC20 token being deposited
* @param _token Amount being deposited
*/
function donate(ERC20 _token, uint256 _amount) external;
3. Withdraw
/**
* @notice Withdraw `@tokenAmount(_token, _amount)`
* @param _token ERC20 token being withdrawn
* @param _token Amount being withdrawn
*/
function withdraw(ERC20 _token, uint256 _amount) external;