IDistributionToDelegators
Interface for managing FlareDrop claims.
Sourced from IDistributionToDelegators.sol
on GitLab.
Manages the ongoing distribution of tokens from the Delegation Incentive Pool (the "FlareDrop"). The approval of FIP.01 created this pool, that releases its tokens every 30 days, over a period of 36 months, to all accounts holding Wrapped FLR.
Functions
claim
Allows the sender to claim or wrap rewards for reward owner.
The caller does not have to be the owner, but must be approved by the owner to claim on his behalf,
this approval is done by calling setClaimExecutors
.
It is actually safe for this to be called by anybody (nothing can be stolen), but by limiting who can
call, we allow the owner to control the timing of the calls.
Reward owner can claim to any _recipient
, while the executor can only claim to the reward owner,
reward owners's personal delegation account or one of the addresses set by setAllowedClaimRecipients
.
function claim(
address _rewardOwner,
address _recipient,
uint256 _month,
bool _wrap
) external returns (
uint256 _rewardAmount);
Parameters
_rewardOwner
: address of the reward owner_recipient
: address to transfer funds to_month
: last month to claim for_wrap
: should reward be wrapped immediately
Returns
_rewardAmount
: amount of total claimed rewards
autoClaim
Allows batch claiming for the list of '_rewardOwners' up to given '_month'. If reward owner has enabled delegation account, rewards are also claimed for that delegation account and total claimed amount is sent to that delegation account, otherwise claimed amount is sent to owner's account. Claimed amount is automatically wrapped. Method can be used by reward owner or executor. If executor is registered with fee > 0, then fee is paid to executor for each claimed address from the list.
function autoClaim(
address[] _rewardOwners,
uint256 _month
) external;
Parameters
_rewardOwners
: list of reward owners to claim for_month
: last month to claim for
optOutOfAirdrop
Method to opt-out of receiving airdrop rewards
function optOutOfAirdrop(
) external;
nextClaimableMonth
Returns the next claimable month for '_rewardOwner'.
function nextClaimableMonth(
address _rewardOwner
) external view returns (
uint256);
Parameters
_rewardOwner
: address of the reward owner