IConvexBaseRewardPool
Functions
rewardToken
function rewardToken() external returns (address)
stakingToken
function stakingToken() external returns (address)
duration
function duration() external returns (uint256)
operator
function operator() external returns (address)
rewardManager
function rewardManager() external returns (address)
pid
function pid() external returns (uint256)
periodFinish
function periodFinish() external returns (uint256)
rewardRate
function rewardRate() external returns (uint256)
lastUpdateTime
function lastUpdateTime() external returns (uint256)
rewardPerTokenStored
function rewardPerTokenStored() external returns (uint256)
queuedRewards
function queuedRewards() external returns (uint256)
currentRewards
function currentRewards() external returns (uint256)
historicalRewards
function historicalRewards() external returns (uint256)
newRewardRatio
function newRewardRatio() external returns (uint256)
userRewardPerTokenPaid
function userRewardPerTokenPaid(
address user
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
user | address |
rewards
function rewards(
address user
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
user | address |
extraRewards
function extraRewards(
uint256 i
) external returns (address)
Parameters
Name | Type | Description |
---|---|---|
i | uint256 |
totalSupply
function totalSupply() external returns (uint256)
balanceOf
function balanceOf(
address account
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
account | address |
extraRewardsLength
function extraRewardsLength() external returns (uint256)
addExtraReward
function addExtraReward(
address _reward
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_reward | address |
clearExtraRewards
function clearExtraRewards() external
lastTimeRewardApplicable
function lastTimeRewardApplicable() external returns (uint256)
rewardPerToken
function rewardPerToken() external returns (uint256)
earned
function earned(
address account
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
account | address |
stake
function stake(
uint256 _amount
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 |
stakeAll
function stakeAll() external returns (bool)
stakeFor
function stakeFor(
address _for,
uint256 _amount
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_for | address | |
_amount | uint256 |
withdraw
function withdraw(
uint256 amount,
bool claim
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | |
claim | bool |
withdrawAll
function withdrawAll(
bool claim
) external
Parameters
Name | Type | Description |
---|---|---|
claim | bool |
withdrawAndUnwrap
function withdrawAndUnwrap(
uint256 amount,
bool claim
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | |
claim | bool |
withdrawAllAndUnwrap
function withdrawAllAndUnwrap(
bool claim
) external
Parameters
Name | Type | Description |
---|---|---|
claim | bool |
getReward
function getReward(
address _account,
bool _claimExtras
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_account | address | |
_claimExtras | bool |
getReward
function getReward() external returns (bool)
donate
function donate(
uint256 _amount
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 |
queueNewRewards
function queueNewRewards(
uint256 _rewards
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_rewards | uint256 |