IAutoStakingV3
Parameter Structs
UserInfo
Structure that contains info about the user`s deposit and reward in auto staking.
Fields description
Status
Structure that contains auto staking`s status for specified user.
Fields description
Functions
getRewardPerClaim
Returns reward per claim at the time _timestamp.
getStatus
Returns auto staking status for _user at the time _timestamp.
getUserInfo
Returns _user`s auto staking info.
unstakeAvailable
Returns summarized amounts of _user`s deposited and available to claim compounded tokens at the time _timestamp.
totalAssets
Returns summarized amounts of _user`s deposited, available to claim compounded tokens, and locked compounded tokens at the time _timestamp.
earnedSinceLastAction
Returns the amount of tokens that the user earned since the last deposit/withdrawal operation.
deposit
Deposits tokens from msg.sender to auto staking.
withdrawAll
Withdraws all the msg.sender`s deposited and available to claim compounded tokens. Locked compounded tokens are distributed among all the left users.
claim
Compounds all the auto staking rewards and sends back the claim reward to msg.sender.
getPricePerFullShare
Returns the amount of all the autostaking tokens per share at the time _timestamp.
withdraw
Withdraws msg.sender`s tokens and sends them back to him.
Last updated