StakeUpStaking
Overview
StakeUpStaking is a smart contract that allows users to stake SUP tokens in order to receive fees generated from stUsdc.
Contract API
stake
function stake(uint256 stakeupAmount) external;Stake SUP tokens in the staking contract to earn stUsdc rewards.
unstake
function unstake(uint256 stakeupAmount, bool harvestRewards) external;Unstake SUP tokens from the staking contract.
harvest
function harvest() external;Claim all stUsdc rewards accrued by the msg.sender
getStakeUpToken
Returns the SUP token instance.
getStUsdc
Returns the stUsdc token instance.
claimableRewards
Returns the amount of claimable rewards available for an account in terms of stUsdc.
totalStakeUpStaked
Returns the total amount of SUP staked within the staking contract.
getRewardData
Returns the global RewardData struct for the staking contract.
getUserStakingData
Returns StakingData for a specific account.
getLastRewardBlock
Returns the last block of the global reward data.
Last updated