NFTStake
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
7
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 49 additional slots
Balances ($0.00)
No balances found for "NFTStake"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "NFTStake"
ABI
ABI objects
Getter at block 22719194 getRewardsPerUnitTime() view returns (uint256 _rewardsPerUnitTime) getTimeUnit() view returns (uint256 _timeUnit)
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
contractType() pure returns (bytes32)
0x4e46545374616b65000000000000000000000000000000000000000000000000
contractURI() view returns (string)
contractVersion() pure returns (uint8)
1
getRewardTokenBalance() view returns (uint256)
0
rewardToken() view returns (address)
0x0000000000000000000000000000000000000000
stakingToken() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember(bytes32 role, uint256 index) view returns (address member)
getRoleMemberCount(bytes32 role) view returns (uint256 count)
getStakeInfo(address _staker) view returns (uint256[] _tokensStaked, uint256 _rewards)
hasRole(bytes32 role, address account) view returns (bool)
hasRoleWithSwitch(bytes32 role, address account) view returns (bool)
indexedTokens(uint256) view returns (uint256)
isIndexed(uint256) view returns (bool)
isTrustedForwarder(address forwarder) view returns (bool)
onERC721Received(address, address, uint256, bytes) view returns (bytes4)
stakerAddress(uint256) view returns (address)
stakers(address) view returns (uint64 amountStaked, uint64 conditionIdOflastUpdate, uint128 timeOfLastUpdate, uint256 unclaimedRewards)
stakersArray(uint256) view returns (address)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events claimRewards()
depositRewardTokens(uint256 _amount) payable
grantRole(bytes32 role, address account)
initialize(address _defaultAdmin, string _contractURI, address[] _trustedForwarders, address _rewardToken, address _stakingToken, uint256 _timeUnit, uint256 _rewardsPerUnitTime)
multicall(bytes[] data) returns (bytes[] results)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
setContractURI(string _uri)
setRewardsPerUnitTime(uint256 _rewardsPerUnitTime)
setTimeUnit(uint256 _timeUnit)
stake(uint256[] _tokenIds)
withdraw(uint256[] _tokenIds)
withdrawRewardTokens(uint256 _amount)
ContractURIUpdated(string prevURI, string newURI)
Initialized(uint8 version)
RewardTokensDepositedByAdmin(uint256 _amount)
RewardTokensWithdrawnByAdmin(uint256 _amount)
RewardsClaimed(address indexed staker, uint256 rewardAmount)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
TokensStaked(address indexed staker, uint256[] indexed tokenIds)
TokensWithdrawn(address indexed staker, uint256[] indexed tokenIds)
UpdatedRewardsPerUnitTime(uint256 oldRewardsPerUnitTime, uint256 newRewardsPerUnitTime)
UpdatedTimeUnit(uint256 oldTimeUnit, uint256 newTimeUnit)
constructor(address _nativeTokenWrapper)
receive()
This contract contains no error objects.