IRewardDistributor

Git Source

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

NameTypeDescription
_tokenaddressthe 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

NameTypeDescription
holdersaddress[]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);