SingleStaking

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x5a5af5b8 at 20086525
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots

No balances found for "SingleStaking"

No transactions found for "SingleStaking"


Functions
Getter at block 21296759
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MAX_STAKING_PERIOD(view returns (uint256)
125798400
MIN_STAKING_PERIOD(view returns (uint256)
7257600
extendPeriodEnabled(view returns (bool)
false
lastRewardRate(view returns (uint256)
0
lastRewardTime(view returns (uint256)
0
moreStakingEnabled(view returns (bool)
false
relockEnabled(view returns (bool)
false
rewardPerShare(view returns (uint256)
0
rewardToken(view returns (address)
0x0000000000000000000000000000000000000000
stakingToken(view returns (address)
0x0000000000000000000000000000000000000000
totalShares(view returns (uint256)
0
totalStaked(view returns (uint256)
0
Read-only
calculateShares(uint256 amountuint256 stakingPeriodpure returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
getUserStake(address userview returns (uint256 amountuint256 sharesuint256 stakingPerioduint256 startTimeuint256 rewardDebt)
hasRole(bytes32 roleaddress accountview returns (bool)
isUnlocked(address userview returns (bool)
pendingRewards(address userview returns (uint256)
stakes(addressview returns (uint256 amountuint256 sharesuint256 stakingPerioduint256 startTimeuint256 rewardDebt)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
addMoreStaking(uint256 amount
addRewards(uint256 amount
claim(
enableExtendPeriod(bool enable
enableMoreStaking(bool enable
enableRelock(bool enable
extendStakingPeriod(uint256 newStakingPeriod
grantRole(bytes32 roleaddress account
initialize(address _stakingTokenaddress _rewardToken
lock(uint256 amountuint256 stakingPeriod
relock(uint256 newStakingPeriod
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
unlock(
Events
Claimed(address indexed useruint256 rewards
ExtendsPeriod(address indexed useruint256 period
Initialized(uint8 version
Relocked(address indexed useruint256 period
RewardsAdded(uint256 rewards
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Staked(address indexed useruint256 amountuint256 lockPeriod
Withdrawn(address indexed useruint256 amount
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
AlreadyLocked(address user
Disabled(
InvalidStakingPeriod(
NoStaking(address user
NotLocked(address user
NotUnlocked(address user