TokenLocker

Verified contract

Active on Ethereum with 3,572 txns
Deployed by via 0x636ff2b7 at 18029866
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 10922 additional slots
-
variable spans 8191 additional slots
ERC-20
Value $1,941,772.3
0x3d383eed9280dbeeb82df510d6bfe7c6dc8d8993ea494626a19dc4e600dc9288
0x65dc167a535037da3ebca34615633a2ca3fb88b3b9d67e277789e60418398b2c
0x8fd11610cb3a2db2864bf6ac02b123e2b8a525d51762c9cd76df4342ab8b3d23
0x6182d9eb621f9cf6e93136389815f87217b9e1af155ed11fe9d2361c7db39232
0x90896cf1b8088a128bcae7f525de86061c011a0b44d0d368bc53628bd0412e76
0x9df233ea3627736525fde134f6470c8b5290a5219b15c0da50d2a6e8f8322f76
0x35d7373e926f9091b16d2cfb33d0559ea9cbcc7255cabe994122cf55d9e4a927
0x1325354aac083f47a7213586a9f4d6543c1f058a54128aa62238af955e78e004
0x7f4f39fa562bd376b8e68fbfffa59c9d7c20b3a4311dc15d985509c35526e931
0xdf7d8d22f8affffc6ac48d3473501c7e97f1490369798ebb5b35869071fcf9eb

Functions
Getter at block 21226127
MAX_LOCK_WEEKS(view returns (uint256)
52
PRISMA_CORE(view returns (address)
0x5d17ea085f2ff5da3e6979d5d26f1dbab664ccf8
allowPenaltyWithdrawAfter(view returns (uint256)
1698450000
deploymentManager(view returns (address)
0xd0efdf01dd8d650bba8992e2c42d0bc6d441a673
getTotalWeight(view returns (uint256)
4779420909
getWeek(view returns (uint256 week)
66
guardian(view returns (address)
0x7a28a80dce1733944db5dc50dc2c5147ec993c5a
incentiveVoter(view returns (address)
0xfd8df0db401ab7ec7a06a8465134fa32132e850c
lockToTokenRatio(view returns (uint256)
1000000000000000000
lockToken(view returns (address)
0xda47862a83dac0c112ba89c6abc2159b95afd71c
owner(view returns (address)
0xc53baaaa8595a7a2e7fee71db7291b939f696734
penaltyWithdrawalsEnabled(view returns (bool)
true
prismaCore(view returns (address)
0x5d17ea085f2ff5da3e6979d5d26f1dbab664ccf8
totalDecayRate(view returns (uint32)
8185644
totalUpdatedWeek(view returns (uint16)
66
Read-only
getAccountActiveLocks(address accountuint256 minWeeksview returns (struct TokenLockerLockData[] lockDatauint256 frozenAmount)
getAccountBalances(address accountview returns (uint256 lockeduint256 unlocked)
getAccountWeight(address accountview returns (uint256)
getAccountWeightAt(address accountuint256 weekview returns (uint256)
getTotalWeightAt(uint256 weekview returns (uint256)
getWithdrawWithPenaltyAmounts(address accountuint256 amountToWithdrawview returns (uint256 amountWithdrawnuint256 penaltyAmountPaid)
State-modifying
extendLock(uint256 _amountuint256 _weeksuint256 _newWeeksreturns (bool)
extendMany(struct TokenLockerExtendLockData[] newExtendLocksreturns (bool)
freeze(
getAccountWeightWrite(address accountreturns (uint256)
getTotalWeightWrite(returns (uint256)
lock(address _accountuint256 _amountuint256 _weeksreturns (bool)
lockMany(address _accountstruct TokenLockerLockData[] newLocksreturns (bool)
setAllowPenaltyWithdrawAfter(uint256 _timestampreturns (bool)
setPenaltyWithdrawalsEnabled(bool _enabledreturns (bool)
unfreeze(bool keepIncentivesVote
withdrawExpiredLocks(uint256 _weeksreturns (bool)
withdrawWithPenalty(uint256 amountToWithdrawreturns (uint256)
Events
LockCreated(address indexed accountuint256 amountuint256 _weeks
LockExtended(address indexed accountuint256 amountuint256 _weeksuint256 newWeeks
LocksCreated(address indexed accountstruct TokenLockerLockData[] newLocks
LocksExtended(address indexed accountstruct TokenLockerExtendLockData[] locks
LocksFrozen(address indexed accountuint256 amount
LocksUnfrozen(address indexed accountuint256 amount
LocksWithdrawn(address indexed accountuint256 withdrawnuint256 penalty
Constructor
constructor(address _prismaCoreaddress _tokenaddress _voteraddress _manageruint256 _lockToTokenRatio
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.