LockNFT

Verified contract

Active on Ethereum with 605 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 $292,719.56
 (#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
--
0x6b69eac998ec151b4198543dfe446254c621179ec99bdc56a75ae4a8a2608821
0x5201159e02e0b075b6f132c1a0f3added1e559e6b6911d8b8fc7ea5659011e78
0x38a8ba88aaa379e5d8f8d183273f0442be3010b46d505d16af93975601ed886c
0xc76580d575153d7a4fa82ec0896009217e2ea428bdc3a9418ed46ed54d9fbe8f
0x8ac76c0d2e692eafa64738d925ef9766e04515e218d148b658bfce02d3a219e3
0x6b212f26b3a9c6bf36641ee5a5c8e6d6ae21122095d3f6ba6e0ee218a4f84123
0x65e6bdb76b14b7a8c0b9f14880f066b7f3b3a77eaa616998163fea670cfc1f23
0x1069c0fc2a96745c8af5203393d5cb98d9c1bce05d61ee27583e9fe87900479d
0x33d88f649d59b2c81d9862052ec1def7491768e90e3993e7da0230193dbe7309
0x1587a0b657a48a783b6de405c09339e8bb7261ca1e7e7475f0df6bcfe784f3cb

Functions
Getter at block 21326288
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)
18
returnContractPeriodState(view returns (uint8 state_uint256 activePeriodIndex_)
(state_=2, activePeriodIndex_=18)
returnContractStateInContract(view returns (uint8)
2
returnLockPeriod(view returns (uint256)
1209600
returnNextPeriod(view returns (uint256)
0
returnPeriodIndexCounter(view returns (uint256)
18
returnPeriodInfoTime(view returns (uint256 currentPeriodStart_uint256 currentPeriodEnd_uint256 nextPeriodStart_uint256 nextPeriodEnd_)
(currentPeriodStart_=1764763201, currentPeriodEnd_=1765972801, nextPeriodStart_=1797508801, nextPeriodEnd_=1798718401)
returnStandardWindowDuration(view returns (uint256)
31536000
returnTotalRewardsDistributed(view returns (uint256 totalRewardsDistributed_USA_1uint256 totalRewardsDistributed_WETH_2uint256 totalRewardsDistributed_Stable_3)
(totalRewardsDistributed_USA_1=675196000000000000000000, totalRewardsDistributed_WETH_2=200000000000000000, totalRewardsDistributed_Stable_3=300000000000000000000)
rewardsDistribution(view returns (address)
0x953465a5958ab6722e069d5e577b1686a2f33ae1
totalTokensLocked(view returns (uint256)
1171
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(