HMStaking

Verified contract

Active on Ethereum with 285 txns
Deployed by via 0x681bb521 at 21098105
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
ERC-20
--
0xfd429aa9d3aa7483d5558c62cac97f5562893bbd90c02160661216b62beeb590
0x90e41a73118f60eb4d1577f57841b0d37d5362440d984d863573e8d57462fe1a
0xa15872cf30e934cf31f96d8211beeafdd0f3fb5965aa68cb58eca08bd4154a1c
0xd2ca3f0b1112c85dc72de024de91723b002f53c242fae892a60fb39eb39bebd3
0xe7970b94bf81430c177a2c0d2480e4619a4891d004d16da8d1bb7dbf4bde62f8
0x71d268c2d98f98534bca54bef6fbe1527289ee199a9988eb85624c8a6dd19403
0xe25a87f145cdd507164b46334d79ee7ea951cdbc162f71da655c6232874dc6e2
0xbd42fdd4f4c17e8aa7800f727c98d4e76de855bb245c36458e6ac6bb52f86d23
0xd738d641cfbf673622078a2bcdd7d920ad815d28857843a834912ae85d694bfa
0x87fd89752fcdb007afb2b85c23e5806fc5c8c34e8dd1cf08d2614956fdcc3f84

Functions
Getter at block 21275677
DIVIDER(view returns (uint256)
1000000
PRECISION(view returns (uint256)
1000000000000000000
ggToken(view returns (address)
0x0c7ecdb459111cd806e54adc9da1f4a03b43b64a
maxTiers(view returns (uint256)
4
owner(view returns (address)
0x972ee5dbf13ca5ba9c5df5579afc3f94c5206539
rewardsPerSecondPerToken(view returns (uint256)
4756468798
stakersLength(view returns (uint256)
183
stakingToken(view returns (address)
0xe85576181a01b1aea6886f07720073f59102b0fd
ticToken(view returns (address)
0x90b72fa2bed25184bb218e7ba572dc0b6121125f
ticketsPerSecondPerToken(view returns (uint256)
1157407407
tiersLength(view returns (uint256)
4
timeOfChangingStakingToken(view returns (uint256)
1731427200
totalAvailableToClaimRewards(view returns (uint256)
3029889836793127779000
totalBonuses(view returns (uint256)
194476122536005586000000000
totalStaked(view returns (uint256)
152255008245430746400000000
xggToken(view returns (address)
0xe85576181a01b1aea6886f07720073f59102b0fd
Read-only
getGeneratedReward(address accountuint256 tierIdview returns (uint256)
getGeneratedTicket(address accountuint256 tierIdview returns (uint256)
pendingRewards(address accountuint256 tierIdview returns (uint256)
stakers(uint256 indexview returns (address)
stakersContains(address userview returns (bool)
tierById(uint256 idview returns (struct HMStakingTier)
userInfo(address useruint256 tierview returns (struct HMStakingUserInfo)
userNumberOfTiers(addressview returns (uint256)
State-modifying
changeStakingToken(returns (bool)
claimRewards(returns (uint256uint256)
emergencyUnstake(uint256 tierIdreturns (bool)
foreignTokensRecover(address tokenuint256 amountaddress toreturns (bool)
renounceOwnership(
setRewardsPerSecondPerToken(uint256 _rewardsPerSecondPerTokenreturns (bool)
setTicketsPerSecondPerToken(uint256 _ticketsPerSecondPerTokenreturns (bool)
setTimeOfChangingStakingToken(uint256 _timeOfChangingStakingTokenreturns (bool)
stake(uint256 tierIduint256 amountreturns (bool)
transferOwnership(address newOwner
unstake(uint256 tierIdreturns (bool)
Events
BonusPaid(address indexed useruint256 indexed tierIduint256 amount
ClaimedRewardsAndTickets(address indexed useruint256 rewardAmountuint256 ticketAmount
EmergencyUnstaked(address indexed useruint256 indexed tierIduint256 amount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RewardsPerSecondPerTokenSetted(uint256 value
Staked(address indexed useruint256 indexed tierIduint256 amount
StakingTokenChanged(address indexed token
TicketsPerSecondPerTokenSetted(uint256 value
TimeOfChangingStakingTokenSetted(uint256 timeOfChangingStakingToken
Unstaked(address indexed useruint256 indexed tierIduint256 amount
Constructor
constructor(address ggToken_address xggToken_address ticToken_uint256 timeOfChangingStakingToken_uint256 rewardsPerSecondPerToken_uint256 ticketsPerSecondPerToken_struct HMStakingTier[] tiers_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
ClaimingRewardsNotStarted(
CurrentTimeGtTimeOfChangingStakingToken(uint256 currentTimeuint256 timeOfChangingStakingToken
CurrentTimeLtTimeOfChangingStakingToken(uint256 currentTimeuint256 timeOfChangingStakingToken
InvalidAddress(address account
NoRewardsAndTickets(
StakingAmountIsZero(
StakingExpired(
StakingPeriodNotExpired(uint256 currentDateuint256 endStakeDate
StakingTierNotExist(address useruint256 tierId
StakingTokenAlreadyChanged(
TierParameterInvalid(
TiersLengthGtMaxTiers(