StakeManager

Contract used for manager staking

Methods

stake

function stake(
    DataTypes.ApeStaked memory apeStaked,
    DataTypes.BakcStaked memory bakcStaked,
    DataTypes.CoinStaked memory coinStaked
) external 

stake ape & bakc & coin

Parameters

approveOperator

function approveOperator(address operator) external

approve a operator for unStake

Parameters

revokeOperator

function revokeOperator() external 

remove the operator for msg.sender

unStake

function unStake(IStakeProxy proxy) external 

UnStake the proxy

Parameters

claim

function claim(IStakeProxy proxy) external

Claim rewards for msg.sender from stake proxy

Parameters

claimFor

function claimFor(IStakeProxy proxy, address staker) external

Claim rewards for staker from stake proxy

Parameters

borrowETH

function borrowETH(
    uint256 amount,
    address apeAsset,
    uint256 apeTokenId
) external

Borrow ETH when the ape staked

Paremeters

View methods

claimable

function claimable(IStakeProxy proxy, address staker) external view returns (uint256)

Query claimable rewards amount for staker from stake proxy

Paremeters

Returns

Last updated