Skip to main content

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

NameTypeDescription
useraddress

rewards

function rewards(
address user
) external returns (uint256)

Parameters

NameTypeDescription
useraddress

extraRewards

function extraRewards(
uint256 i
) external returns (address)

Parameters

NameTypeDescription
iuint256

totalSupply

function totalSupply() external returns (uint256)

balanceOf

function balanceOf(
address account
) external returns (uint256)

Parameters

NameTypeDescription
accountaddress

extraRewardsLength

function extraRewardsLength() external returns (uint256)

addExtraReward

function addExtraReward(
address _reward
) external returns (bool)

Parameters

NameTypeDescription
_rewardaddress

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

NameTypeDescription
accountaddress

stake

function stake(
uint256 _amount
) external returns (bool)

Parameters

NameTypeDescription
_amountuint256

stakeAll

function stakeAll() external returns (bool)

stakeFor

function stakeFor(
address _for,
uint256 _amount
) external returns (bool)

Parameters

NameTypeDescription
_foraddress
_amountuint256

withdraw

function withdraw(
uint256 amount,
bool claim
) external returns (bool)

Parameters

NameTypeDescription
amountuint256
claimbool

withdrawAll

function withdrawAll(
bool claim
) external

Parameters

NameTypeDescription
claimbool

withdrawAndUnwrap

function withdrawAndUnwrap(
uint256 amount,
bool claim
) external returns (bool)

Parameters

NameTypeDescription
amountuint256
claimbool

withdrawAllAndUnwrap

function withdrawAllAndUnwrap(
bool claim
) external

Parameters

NameTypeDescription
claimbool

getReward

function getReward(
address _account,
bool _claimExtras
) external returns (bool)

Parameters

NameTypeDescription
_accountaddress
_claimExtrasbool

getReward

function getReward() external returns (bool)
function donate(
uint256 _amount
) external returns (bool)

Parameters

NameTypeDescription
_amountuint256

queueNewRewards

function queueNewRewards(
uint256 _rewards
) external returns (bool)

Parameters

NameTypeDescription
_rewardsuint256