IAbstractERC721Multiplier
Interface Description
License: MIT
This is the special NFT contract which behaves like a coupon that can be locked to receive certain extra rewards proportional to the rewards in the Governance pool contract
Structs info
NftInfo
This struct holds NFT Multiplier parameters
Parameters:
multiplier
uint256
the basic rewards multiplier
duration
uint64
the time for which an nft can be locked
mintedAt
uint64
the time nft was minter
Functions info
lock (0xdd467064)
This function is used to lock an nft (enable corresponding basic rewards multiplier). Only one NFT for each address can be locked at the same time
Parameters:
tokenId
uint256
the id of the nft to be locked
unlock (0xa69df4b5)
This function is used to unlock an nft (disable corresponding basic rewards multiplier)
getExtraRewards (0x1429683b)
This function is used to calculate extra rewards
Parameters:
whose
address
the address of the user who is to receive extra rewards
rewards
uint256
basic rewards to be multiplied
Return values:
[0]
uint256
extra rewards
isLocked (0xf6aacfb1)
This function is used to check whether the passed nft id is locked
Parameters:
tokenId
uint256
the id of the nft
Return values:
[0]
bool
false if nft has expired or hasn't yet been locked, otherwise true