Skip to main content

MockConvexBaseRewardPool

Functions

constructor

function constructor(
address _rewardToken,
address _lpTokens
) public

Parameters

NameTypeDescription
_rewardTokenaddress
_lpTokensaddress

mockSetRewardAmountPerClaim

function mockSetRewardAmountPerClaim(
uint256 _rewardAmountPerClaim
) public

Parameters

NameTypeDescription
_rewardAmountPerClaimuint256

withdrawAndUnwrap

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

Parameters

NameTypeDescription
amountuint256
claimbool

withdrawAllAndUnwrap

function withdrawAllAndUnwrap(
bool claim
) public

Parameters

NameTypeDescription
claimbool

getReward

function getReward(
address who,
bool claim
) public returns (bool)

Parameters

NameTypeDescription
whoaddress
claimbool

stakeFor

function stakeFor(
address who,
uint256 amount
) public returns (bool)

Parameters

NameTypeDescription
whoaddress
amountuint256

balanceOf

function balanceOf(
address who
) public returns (uint256)

Parameters

NameTypeDescription
whoaddress