IInfraredVault
Functions
rewardData
Gets the reward data for a given rewards token
function rewardData(address _rewardsToken)
external
view
returns (
address rewardsDistributor,
uint256 rewardsDuration,
uint256 periodFinish,
uint256 rewardRate,
uint256 lastUpdateTime,
uint256 rewardPerTokenStored,
uint256 rewardResidual
);
Parameters
Name | Type | Description |
---|---|---|
_rewardsToken | address | The address of the rewards token |
Returns
Name | Type | Description |
---|---|---|
rewardsDistributor | address | The address authorized to distribute rewards |
rewardsDuration | uint256 | The duration of the reward period |
periodFinish | uint256 | The timestamp when rewards finish |
rewardRate | uint256 | The rate of rewards distributed per second |
lastUpdateTime | uint256 | The last time rewards were updated |
rewardPerTokenStored | uint256 | The last calculated reward per token |
rewardResidual | uint256 |
totalSupply
Returns the total amount of staked tokens in the contract
function totalSupply() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | uint256 The total supply of staked tokens |