TokenStakingControllable

Verified contract

Active on Ethereum with 2,869 txns
Deployed by via 0xbff9d03d at 20240352
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $2.17
ERC-20
Value $3,646,725.97
0x6dcf3f7f7daf0c49d5916e5a945137cff542ab835a5b9b69bc7555e9ffd9ec06
0x5506554a8d8e9ead1eae0bef547b2ca383f025ac7448d02744b2a610364290a6
0xf4ca3e014fcb5f18e750269a1966f5f252136bd057c917a2edaf43288e4e3c3c
0x36a0f5fb2f0dec3f8d94fbc60e7479d3d8fc3089ba4436ad5771d24f160a0029
0x00a599a38e088a535e3731fc27cbce78709da398a8bb52e5a10e5a637f31d692
0xcc0cdca52ffe9fc5a5504698513b398daeb3a8358f41404558cc6b6b7f750609
0x3130acf8219483f73bdcef944042fc311fb398fe4faf1254e91222ee7a56c4e7
0x621d9d2f1c24f23b20206505a59a5fb0ac64959c497f834d90ad0b9d69f3aaa3
0x8e724bf757f0a4a705c1ca19c06874459dad109326a52655efe9d240e82cee29
0x60bd3dc3f5e27e403021def1c20ccf8b499d0ad76fceb277570f4cc9102edf91

Functions
Getter at block 21392150
CONTROLLER_ROLE(view returns (bytes32)
0x08a35e1699a1a8b5214fb8b0126a8cc4c903fd5c7f475703ee2fc9cca6d1f1ab
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
apocalypseDate(view returns (uint256)
1752710400
getLockUpConfigs(view returns (struct ITokenStakingCoreLockUpConfig[])
[(0, 1000000), (2592000, 1200000), (5184000, 1400000), (15552000, 1800000)]
maxActiveSections(view returns (uint256)
10
sectionCounter(view returns (uint256)
6412
tokenAddress(view returns (address)
0x3e5a19c91266ad8ce2477b91585d1856b84062df
Read-only
activeUserSectionIds(addressuint256view returns (uint256)
getActiveUserSectionIds(address ownerview returns (uint256[])
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
lockUpConfigs(uint256view returns (uint256 durationuint256 multiplier)
sections(uint256view returns (uint256 iduint256 amountuint256 noLockMultiplieruint256 startedDateuint256 unstakedDatestruct ITokenStakingCoreLockUpConfig lockUpConfigaddress owner)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
delegateStake(address owneruint256 amountstruct ITokenStakingCoreLockUpConfig lockUpConfiguint256 noLockMultiplierreturns (uint256)
grantRole(bytes32 roleaddress account
renounceRole(bytes32 roleaddress callerConfirmation
revokeRole(bytes32 roleaddress account
setApocalypseDate(uint256 _apocalypseDate
setLockupPeriods(struct ITokenStakingCoreLockUpConfig[] _lockUpConfigs
setMaxSections(uint256 _maxActiveSections
stake(uint256 amountuint256 lockUpConfigIdxreturns (uint256)
unstake(uint256 sectionId
Events
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
StakeToken(address indexed stakeruint256 sectionIduint256 amountuint256 startedDateuint256 durationuint256 multiplieruint256 noLockMultiplier
UnstakeToken(address indexed stakeruint256 sectionId
Constructor
constructor(address adminaddress _tokenAddressuint256 _maxActiveSectionsuint256 _apocalypseDate
Fallback and receive
fallback(
receive(
Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
AddressEmptyCode(address target
AddressInsufficientBalance(address account
FailedInnerCall(
SafeERC20FailedOperation(address token