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
stakefunction stake(uint256 stakeupAmount) external;Stake SUP tokens in the staking contract to earn stUsdc rewards.
unstake
unstakefunction unstake(uint256 stakeupAmount, bool harvestRewards) external;Unstake SUP tokens from the staking contract.
harvest
harvestfunction harvest() external;Claim all stUsdc rewards accrued by the msg.sender
getStakeUpToken
getStakeUpTokenReturns the SUP token instance.
getStUsdc
getStUsdcReturns the stUsdc token instance.
claimableRewards
claimableRewardsReturns the amount of claimable rewards available for an account in terms of stUsdc.
totalStakeUpStaked
totalStakeUpStakedReturns the total amount of SUP staked within the staking contract.
getRewardData
getRewardDataReturns the global RewardData struct for the staking contract.
getUserStakingData
getUserStakingDataReturns StakingData for a specific account.
getLastRewardBlock
getLastRewardBlockReturns the last block of the global reward data.
Last updated