LockedStaking
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
6
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
Balances ($0.00)
No balances found for "LockedStaking"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "LockedStaking"
ABI
ABI objects
Getter at block 21218654
ALGORITHM_THRESHOLD_IN_EPOCHS() view returns (uint256)
5
EPOCH_DURATION() view returns (uint256)
28800
MAX_LOCK_COUNT() view returns (uint256)
5
MAX_MULTIPLIER() view returns (uint256)
998
MAX_REWARD_COUNT() view returns (uint256)
5
accRewardWeight() view returns (uint256)
0
compoundAmount() view returns (uint256)
0
compoundLastAccRewardWeight() view returns (uint256)
0
compoundShares() view returns (uint256)
0
getRewards() view returns (struct LockedStakingReward[])
[]
getRewardsLength() view returns (uint256)
0
lastRewardUpdate() view returns (uint256)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
precision() view returns (uint256)
0
swapToken() view returns (address)
0x0000000000000000000000000000000000000000
totalScore() view returns (uint256)
0
Read-only
convertToAutoCompoundAssets(uint256 shares) view returns (uint256)
convertToAutoCompoundShares(uint256 assets) view returns (uint256)
getLockLength(address addr) view returns (uint256)
getUserClaimable(address user) view returns (uint256 claimable)
getUserLocks(address addr) view returns (struct LockedStakingLock[])
hasLockAutoCompoundEnabled(address user, uint256 index) view returns (bool)
locks(address, uint256) view returns (uint16 multiplier, uint32 end, uint208 amount)
rewardoors(address) view returns (bool)
rewards(uint256) view returns (uint32 start, uint32 end, uint192 amountPerSecond)
userLastAccRewardsWeight(address) view returns (uint256)
State-modifying
Events addLock(uint208 amount, uint256 duration)
addReward(uint32 start, uint32 end, uint192 amountPerSecond)
claim()
compound(uint8 index)
disableAutoCompound(uint256 index)
enableAutoCompound(uint256 index)
initialize(address _swapToken, uint256 _precision)
removeReward(uint256 index)
renounceOwnership()
setRewardoor(address addr, bool value)
transferOwnership(address newOwner)
unlock(uint256 index)
updateLockAmount(uint256 index, uint208 amount)
updateLockDuration(uint8 index, uint256 duration)
updateReward(uint256 index, uint256 newStart, uint256 newEnd, uint256 newAmountPerSecond)
updateRewardsWeight() returns (uint256)
AutoCompoundDisabled(address indexed from, uint256 index, uint256 amount)
AutoCompoundEnabled(address indexed from, uint256 index, uint256 shares)
AutoCompounded(uint256 compoundAmount)
Claim(address indexed from, uint256 amount)
Initialized(uint8 version)
LockAdded(address indexed from, uint208 amount, uint32 end, uint16 multiplier)
LockUpdated(address indexed from, uint8 index, uint208 amount, uint32 end, uint16 multiplier)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
RewardAdded(uint256 start, uint256 end, uint256 amountPerSecond)
RewardRemoved(uint256 index)
RewardUpdated(uint256 index, uint256 start, uint256 end, uint256 amountPerSecond)
RewardoorSet(address indexed rewardoor, bool value)
Unlock(address indexed from, uint256 amount, uint256 index)
constructor()
This contract contains no fallback and receive objects.
AlreadyAutoCompound()
AmountIsZero()
CanOnlyAddFutureRewards()
CantAutoCompound()
CantChangePast()
CantUpdateExpiredLock()
DurationOutOfBounds(uint256 duration)
IntervalNotRoundedWithEpoch()
LockStillActive()
MaxLocksSucceeded()
MaxRewardsSucceeded()
MustProlongLock(uint256 oldDuration, uint256 newDuration)
NotAutoCompoundEnabled()
NotRewardoor()
NothingToClaim()
RewardStartEqEnd()
TransferFailed()
UpdateToSmallerMultiplier(uint16 oldMultiplier, uint16 newMultiplier)
ZeroAddress()
ZeroAmount()
ZeroPrecision()