IStaking721
thirdweb
Methods
claimRewards
Claim accumulated rewards.
getStakeInfo
View amount staked and total rewards for a user.
Parameters
staker
address
Address for which to calculated rewards.
Returns
_tokensStaked
uint256[]
undefined
_rewards
uint256
undefined
stake
Stake ERC721 Tokens.
Parameters
tokenIds
uint256[]
List of tokens to stake.
withdraw
Withdraw staked tokens.
Parameters
tokenIds
uint256[]
List of tokens to withdraw.
Events
RewardsClaimed
Emitted when a staker claims staking rewards.
Parameters
staker indexed
address
undefined
rewardAmount
uint256
undefined
TokensStaked
Emitted when a set of token-ids are staked.
Parameters
staker indexed
address
undefined
tokenIds indexed
uint256[]
undefined
TokensWithdrawn
Emitted when a set of staked token-ids are withdrawn.
Parameters
staker indexed
address
undefined
tokenIds indexed
uint256[]
undefined
UpdatedRewardsPerUnitTime
Emitted when contract admin updates rewardsPerUnitTime.
Parameters
oldRewardsPerUnitTime
uint256
undefined
newRewardsPerUnitTime
uint256
undefined
UpdatedTimeUnit
Emitted when contract admin updates timeUnit.
Parameters
oldTimeUnit
uint256
undefined
newTimeUnit
uint256
undefined
Last updated