IRewardDistributor
Functions
operator
The operator that rewards are distributed to
function operator() external view returns (address);
isRewardToken
Flag to check if reward token added before
function isRewardToken(address _token) external view returns (bool);
Parameters
Name | Type | Description |
---|---|---|
_token | address | the token to check for |
getRewardTokens
Added reward tokens
function getRewardTokens() external view returns (address[] memory);
getBlockTimestamp
Get block timestamp
function getBlockTimestamp() external view returns (uint32);
notifySupplyIndex
Notifies supply index
function notifySupplyIndex(address mToken) external;
notifyBorrowIndex
Notifies borrow index
function notifyBorrowIndex(address mToken) external;
notifySupplier
Notifies supplier
function notifySupplier(address mToken, address supplier) external;
notifyBorrower
Notifies borrower
function notifyBorrower(address mToken, address borrower) external;
claim
Claim tokens for `holders
function claim(address[] memory holders) external;
Parameters
Name | Type | Description |
---|---|---|
holders | address[] | the accounts to claim for |
Events
RewardAccrued
event RewardAccrued(address indexed rewardToken, address indexed user, uint256 deltaAccrued, uint256 totalAccrued);
RewardGranted
event RewardGranted(address indexed rewardToken, address indexed user, uint256 amount);
SupplySpeedUpdated
event SupplySpeedUpdated(address indexed rewardToken, address indexed mToken, uint256 supplySpeed);
BorrowSpeedUpdated
event BorrowSpeedUpdated(address indexed rewardToken, address indexed mToken, uint256 borrowSpeed);
OperatorSet
event OperatorSet(address indexed oldOperator, address indexed newOperator);
WhitelistedToken
event WhitelistedToken(address indexed token);
SupplyIndexNotified
event SupplyIndexNotified(address indexed rewardToken, address indexed mToken);
BorrowIndexNotified
event BorrowIndexNotified(address indexed rewardToken, address indexed mToken);