IDistributor

Git Source

Functions

claim

Claims rewards for a given set of users

Unless another address has been approved for claiming, only an address can claim for itself

function claim(
    address[] calldata users,
    address[] calldata tokens,
    uint256[] calldata amounts,
    bytes32[][] calldata proofs
) external;

Parameters

NameTypeDescription
usersaddress[]Addresses for which claiming is taking place
tokensaddress[]ERC20 token claimed
amountsuint256[]Amount of tokens that will be sent to the corresponding users
proofsbytes32[][]Array of hashes bridging from a leaf `(hash of user

toggleOperator

Toggles whitelisting for a given user and a given operator

When an operator is whitelisted for a user, the operator can claim rewards on behalf of the user

function toggleOperator(address user, address operator) external;