LockedStaking

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x5a8eb624 at 16769683
Slot
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

No balances found for "LockedStaking"

No transactions found for "LockedStaking"


Functions
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 sharesview returns (uint256)
convertToAutoCompoundShares(uint256 assetsview returns (uint256)
getLockLength(address addrview returns (uint256)
getUserClaimable(address userview returns (uint256 claimable)
getUserLocks(address addrview returns (struct LockedStakingLock[])
hasLockAutoCompoundEnabled(address useruint256 indexview returns (bool)
locks(addressuint256view returns (uint16 multiplieruint32 enduint208 amount)
rewardoors(addressview returns (bool)
rewards(uint256view returns (uint32 startuint32 enduint192 amountPerSecond)
userLastAccRewardsWeight(addressview returns (uint256)
State-modifying
addLock(uint208 amountuint256 duration
addReward(uint32 startuint32 enduint192 amountPerSecond
claim(
compound(uint8 index
disableAutoCompound(uint256 index
enableAutoCompound(uint256 index
initialize(address _swapTokenuint256 _precision
removeReward(uint256 index
renounceOwnership(
setRewardoor(address addrbool value
transferOwnership(address newOwner
unlock(uint256 index
updateLockAmount(uint256 indexuint208 amount
updateLockDuration(uint8 indexuint256 duration
updateReward(uint256 indexuint256 newStartuint256 newEnduint256 newAmountPerSecond
updateRewardsWeight(returns (uint256)
Events
AutoCompoundDisabled(address indexed fromuint256 indexuint256 amount
AutoCompoundEnabled(address indexed fromuint256 indexuint256 shares
AutoCompounded(uint256 compoundAmount
Claim(address indexed fromuint256 amount
Initialized(uint8 version
LockAdded(address indexed fromuint208 amountuint32 enduint16 multiplier
LockUpdated(address indexed fromuint8 indexuint208 amountuint32 enduint16 multiplier
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RewardAdded(uint256 startuint256 enduint256 amountPerSecond
RewardRemoved(uint256 index
RewardUpdated(uint256 indexuint256 startuint256 enduint256 amountPerSecond
RewardoorSet(address indexed rewardoorbool value
Unlock(address indexed fromuint256 amountuint256 index
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyAutoCompound(
AmountIsZero(
CanOnlyAddFutureRewards(
CantAutoCompound(
CantChangePast(
CantUpdateExpiredLock(
DurationOutOfBounds(uint256 duration
IntervalNotRoundedWithEpoch(
LockStillActive(
MaxLocksSucceeded(
MaxRewardsSucceeded(
MustProlongLock(uint256 oldDurationuint256 newDuration
NotAutoCompoundEnabled(
NotRewardoor(
NothingToClaim(
RewardStartEqEnd(
TransferFailed(
UpdateToSmallerMultiplier(uint16 oldMultiplieruint16 newMultiplier
ZeroAddress(
ZeroAmount(
ZeroPrecision(