Faucet

Git Source

Inherits: IFaucet

State Variables

operator_

operator to use to send the amounts on request.

address public operator_;

EMERGENCY_COUNCIL

emergency council to use to "rescue" the funds at any point.

address immutable EMERGENCY_COUNCIL;

tokens

IERC20[] public tokens;

amounts

uint256[] private amounts;

gasTokenAmount

uint256 private gasTokenAmount;

Functions

constructor

constructor(
    address _operator,
    address _emergencyCouncil,
    IERC20[] memory _tokens,
    uint256[] memory _amounts,
    uint256 _gasTokenAmount
);

receive

receive() external payable;

sendTo

sendTo the recipients given, with the amount being randomly chosen.

will break if there's not enough to send... by design.

function sendTo(FaucetReq[] calldata _requests) external;

changeOperator

function changeOperator(address _oldOperator, address _newOperator) external;