LockNFT

Verified contract

Active on Ethereum with 584 txns
Deployed by via 0x84c258ce at 19636720
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $340,298.21
 (#1771)
ERC-1555
--
 (#1770)
ERC-1555
--
 (#1768)
ERC-1555
--
 (#1767)
ERC-1555
--
 (#1761)
ERC-1555
--
 (#1747)
ERC-1555
--
 (#1744)
ERC-1555
--
 (#1741)
ERC-1555
--
 (#1724)
ERC-1555
--
0x41d1cde745c52a046c7fc300404fcc2d676c7f303da5094ab4109e9fdb3aa1d3
0x2a036eab6c28503e417360b37b10924fc398050afe638558d646d34d7dad9b07
0x33487a95859e9da1d21875d01977fe70e49fd8a1f14833e0f69ae58798ec6abb
0x8f924521f5116b9210aff1220f0c5ca5908d52589e5925caffa0ff4a61fff71b
0x84f698be5aed35fe5c81331c6d61c5ff925d31f769a602952a7b01983abdc686
0x891262e094e71a89a0e672acf5b954d184e5620b635c59b850d011a7426f5ff3
0x8ed6bfab3449b21f080f9faa05c3b7e4a71e28a8b0d20d25408fb8572f59a569
0x6ba2da787258dffa7e012d66674ce6c38f1672ea915e87fc1d78a3502fd71131
0xc5f9c7ab7566679b8dbb2dc3584fa360cdbfbf1d6e4e6e1248604e70b38826d1
0xf815e50f4cf87f6fc9cfd53d064d2b1cbb3a6758eed1ae9d8fbfa39b3374c265

Functions
Getter at block 21169793
isActivePeriodFinalized(view returns (bool)
false
isPreviousPeriodFinalized(view returns (bool)
true
lockTokenERC1155(view returns (address)
0x0bde4ba965f8f21c6b359c0e0488deb0e921ada2
migratorContractAddress(view returns (address)
0x0000000000000000000000000000000000000000
owner(view returns (address)
0x095cb2dd19ad95dba033889c2b0965e6fe357309
paused(view returns (bool)
false
receiptNFTContract(view returns (address)
0xd51a6af83c7ab056f0f4e89cc295e3a10982914e
returnActivePeriodInContract(view returns (uint256)
16
returnContractPeriodState(view returns (uint8 state_uint256 activePeriodIndex_)
(state_=1, activePeriodIndex_=16)
returnContractStateInContract(view returns (uint8)
1
returnLockPeriod(view returns (uint256)
1209600
returnNextPeriod(view returns (uint256)
0
returnPeriodIndexCounter(view returns (uint256)
16
returnPeriodInfoTime(view returns (uint256 currentPeriodStart_uint256 currentPeriodEnd_uint256 nextPeriodStart_uint256 nextPeriodEnd_)
(currentPeriodStart_=1730548801, currentPeriodEnd_=1731758401, nextPeriodStart_=1732017601, nextPeriodEnd_=1733227201)
returnStandardWindowDuration(view returns (uint256)
259200
returnTotalRewardsDistributed(view returns (uint256 totalRewardsDistributed_USA_1uint256 totalRewardsDistributed_WETH_2uint256 totalRewardsDistributed_Stable_3)
(totalRewardsDistributed_USA_1=625196000000000000000000, totalRewardsDistributed_WETH_2=200000000000000000, totalRewardsDistributed_Stable_3=300000000000000000000)
rewardsDistribution(view returns (address)
0x953465a5958ab6722e069d5e577b1686a2f33ae1
totalTokensLocked(view returns (uint256)
1198
usaLockAmount(view returns (uint256)
4000000000000000000000
Read-only
amountLocked(address _accountview returns (uint256)
amountUsaLocked(uint256view returns (uint256)
returnPendingRewards(address _userview returns (uint256uint256uint256)
returnPeriodInfo(uint256 _periodIndexview returns (uint8 isFinalizeduint88 totalLockedInPerioduint88 totalRewardedInPeriod_USA_1uint32 timestampPeriodStartuint88 totalRewardedInPeriod_WETH_2uint88 totalRewardedInPeriod_Stable_3uint32 timestampPeriodEnd)
returnPeriodInfoStruct(uint256 _periodIndexview returns (struct ILockPeriodContractPeriodInfo)
returnPeriodRewardPerStakedToken(uint256 _periodIndexview returns (uint256uint256uint256)
returnRewardClaimableUser(address _accountview returns (uint256uint256uint256)
returnUserStakeInfo(address _accountview returns (uint8 lastUpdatePeriodIndexuint88 amountStakeduint88 rewardDebt_USA_1uint88 rewardPaid_USA_1uint88 rewardDebt_WETH_2uint88 rewardPaid_WETH_2uint88 rewardDebt_Stable_3uint88 rewardPaid_Stable_3)
rewardPerToken_Stable_3(uint256 _periodIndexview returns (uint256)
rewardPerToken_USA_1(uint256 _periodIndexview returns (uint256)
rewardPerToken_WETH_2(uint256 _periodIndexview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
configureFirstPeriod(uint32 _startFirstPerioduint256 _lockDurationNextPeriod
distributeRewardsForLatestPeriod(uint256 _amountReward_usa_1uint256 _amountReward_weth_2uint256 _amountReward_stable_3
emergencyWithdrawToken(address _tokenaddress _touint256 _amount
executeAnyCall(address _targetbytes _data
harvestRewards(returns (uint256 claimableReward_USA_1uint256 claimableReward_WETH_2uint256 claimableReward_Stable_3)
lockBatchNFTInAnyPeriod(uint256[] _tokenIds
lockSingleNFTInAnyPeriod(uint256 _tokenId
onERC1155BatchReceived(address operatoraddress fromuint256[] idsuint256[] valuesbytes datareturns (bytes4)
onERC1155Received(address operatoraddress fromuint256 iduint256 valuebytes datareturns (bytes4)
pause(
renounceOwnership(
restartLockContract(uint32 _startFirstPerioduint256 _lockDurationNextPeriod
setLockPeriodNextPeriod(uint256 _lockPeriodNextPeriod
setMigratorContract(address _migratorContract
setPeriodAllInfo(uint256 _periodIndexuint8 _isFinalizeduint32 _timestampPeriodStartuint32 _timestampPeriodEnduint88 _totalLockedInPerioduint88 _totalRewardedInPeriod_USA_1uint88 _totalRewardedInPeriod_WETH_2uint88 _totalRewardedInPeriod_Stable_3
setPeriodFinalized(uint256 _periodIndex
setPoolState(uint8 _poolState
setRewardsDistribution(address _rewardsDistribution
setStandardWindowDuration(uint32 _standardWindowDuration
setTotalLockedInPeriod(uint256 _periodIndexuint88 _totalLockedInPeriod
setUsaLockAmount(uint256 _amount
transferOwnership(address newOwner
transferStakedTokensToMultisig(address _touint256 _amount
unfinalizePeriod(uint256 _periodIndex
unpause(
unstakeBatchOfNfts(uint256[] _tokenIds
unstakeSingleNftIndex(uint256 _tokenId
updateManual(
Events
BatchNftLocked(address stakerAddressuint256[] tokenIdsuint256 totalUSAStakeduint256 activePeriodIndex
BatchOfNftsUnstaked(uint256[] _tokenIds
ContractStateChanged(uint8 _contractStateuint256 periodIndex
DistributeRewardsForLatestPeriod(uint256 periodIndexuint256 amountReward_usa_1uint256 amountReward_weth_2uint256 amountReward_stable_3uint88 totalLockedInPeriod
LockActiveUpdated(bool _isLockActive
LockPeriodNextPeriodUpdated(uint256 lockPeriodNextPeriod
NFTLocked(address stakeruint256 nftIndexuint256 amountUSAuint256 activerPeriodIndex
NewLockPeriodConfigured(uint256 indexed periodIndexuint32 timestampPeriodStartuint256 lockDurationNextPeriod
NewPeriodCreated(uint256 indexed periodIndexuint32 timestampPeriodStartuint32 timestampPeriodEnd
NewPeriodStarted(uint256 indexed periodIndexuint256 startTimeuint256 endTime
NftUnstaked(uint256 tokenId
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
PoolStateManualSet(uint8 _poolState
RewardDistributed(uint256 indexed periodIndexuint256 amount
RewardsClaimed(address indexed useruint256 amountClaimedUSAuint256 amountClaimedWETHuint256 amountClaimedStable
RewardsDistributionUpdated(address newRewardsDistribution
RewardsDurationUpdated(uint256 newDuration
SetUsaLockAmount(uint256 _amount
StandardWindowDurationUpdated(uint32 standardWindowDuration
StopNextPeriod(bool stopNextPeriod
TimeoutByUnfinalizedPeriods(uint256 activePeriodIndex
TokensStaked(address indexed useruint256 amountuint256 periodIndexCounter_
Unpaused(address account
UnstakeTokens(address indexed useruint256 amount
Constructor
constructor(address _rewardsToken_usa_1address _rewardsToken_WETH_2address _rewardsToken_Stable_3address _lockERC20address _owneraddress _multisigaddress _receiptNFTaddress _lockNFTAddressuint256 _lockDurationNextPerioduint256 _defaultWindowDuration
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
EnforcedPause(
ExpectedPause(
FailedCall(
InsufficientBalance(uint256 balanceuint256 needed
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
ReentrancyGuardReentrantCall(