EeseeStaking
EeseeStaking
ESE
ESE token to use in staking.
volumeUpdaters
Addresses that can update volume. It can be useful to us to have multiple volume updaters.
volume
Volume for each user on Eesee marketplace.
userInfo
Maps isLocked bool to user to struct containing user data.
totalDeposits
Total ESE staked in this contract (not including rewards).
duration
Min locked staking duration.
rewardID
The number of negative reward rate updates.
deposit
Stakes ESE tokens. If {lockDuration} == 0, the user can withdraw tokens anytime. Else, the user can withdraw their tokens after {duration} seconds.
Parameters
withdraw
Withdraws staked ESE tokens, collects rewards and sends them to {recipient}. Pass 0 to {amount} to only receive rewards. In case reward rates are negatively changed during Locked staker's staking period, they are able to withdraw their funds.
Parameters
Return Values
addVolume
_Adds {_volume} to an {address}'es volume. Emits {AddVolume} event.
Parameters
updateRewardRates
Changes the reward rates for all staking schemes and tiers.
Parameters
changeDuration
Changes duration for locked staking. Emits {ChangeDuration} event.
Parameters
grantVolumeUpdater
_Grants rights to update volume to {address}. Emits {GrantVolumeUpdater} event.
Parameters
revokeVolumeUpdater
_Revokes rights to update volume from {address}. Emits {RevokeVolumeUpdater} event.
Parameters
pendingReward
_Returns ESE tokens earned by {user}. Note: Does not take unlockTime or current contract reward balance into account.
Parameters
Return Values
tierInfo
Returns the info on specified tier.
Parameters
Return Values
tier
Returns the tier from volume.
Parameters
Return Values
Inherited from EeseeRoleHandler
Inherited from ERC2771Context
isTrustedForwarder
Inherited from IEeseeStaking
ESE
volumeUpdaters
volume
userInfo
totalDeposits
duration
DepositFlexible
DepositLocked
WithdrawFlexible
WithdrawLocked
AddVolume
UpdateRewardRates
ChangeDuration
GrantVolumeUpdater
RevokeVolumeUpdater
Last updated