FeeSharingSystem

Verified contract

Active on Ethereum with 67,463 txns
Deployed by via 0x83b41444 at 14211748
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $1,934,389.72
0x316a60dfd5369aa492357997c3cc957010666678fb59a98be1d88b850c6e0a23
0x4f44c4e44520dc011ccc1bb5a37b3e37461143d90cace825b467fb789d42480d
From
0x46c22f45bca35785a4dc8817173eb0b96d4d0d68d50c7f2291e373c977cddc3d
0x769fed5ebfc433a8bf42996568dcf7cbe80d71b02e094b599eeb9a63b5536e7d
From
0x06d878ffb659b7ce86aa7e25b5d3d7096e56cc6edf6fc9812916b492e0603c7c
0xdb85c176ad12a7503ee713471f0503ea9e3f0add0aa6733577b44263a413e74a
0xd2a258071ea4261ce96672e37e69bee3e7ef393580e21b41e10abf57b8b423fb
0xa062947a369b79abc063bc1b755a04e8b2d83d47cc8b7b7f22b4c2e050351c3e
0x57a5751c829cc2e59137b5940f516c725cdf63af940a367e06f81dfa47a5eaa0
0x23431ad94c236f38dd5f04b5915fa9b02c975b2e5309da448ac05118835af5a8

Functions
Getter at block 21245501
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DEPOSIT_ROLE(view returns (bytes32)
0x2561bf26f818282a3be40719542054d2173eb0d38539e8a8d3cff22f29fd2384
PRECISION_FACTOR(view returns (uint256)
1000000000000000000
REWARD_UPDATE_ROLE(view returns (bytes32)
0xd139c7f3a5460f246794bd24bff3478b49114f682a7cc4513889d72531631b96
calculateSharePriceInX2Y2(view returns (uint256)
15415110934126656229
currentRewardPerBlock(view returns (uint256)
107380153846153
lastRewardAdjustment(view returns (uint256)
0
lastRewardBlock(view returns (uint256)
21245501
lastUpdateBlock(view returns (uint256)
21240147
periodEndBlock(view returns (uint256)
21246647
rewardPerTokenStored(view returns (uint256)
474137116617152
rewardToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
tokenDistributor(view returns (address)
0xb329e39ebefd16f40d38f07643652ce17ca5bac1
totalShares(view returns (uint256)
29969897645363984490363879
x2y2Token(view returns (address)
0x1e4ede388cbc9f4b5c79681b7f94d36a11abebc9
Read-only
calculatePendingRewards(address userview returns (uint256)
calculateSharesValueInX2Y2(address userview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
userInfo(addressview returns (uint256 sharesuint256 userRewardPerTokenPaiduint256 rewards)
State-modifying
deposit(uint256 amountbool claimRewardToken
depositFor(address useruint256 amountreturns (bool)
grantRole(bytes32 roleaddress account
harvest(
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
updateRewards(uint256 rewarduint256 rewardDurationInBlocks
withdraw(uint256 sharesbool claimRewardToken
withdrawAll(bool claimRewardToken
Events
Deposit(address indexed useruint256 amountuint256 harvestedAmount
Harvest(address indexed useruint256 harvestedAmount
NewRewardPeriod(uint256 numberBlocksuint256 rewardPerBlockuint256 reward
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Withdraw(address indexed useruint256 amountuint256 harvestedAmount
Constructor
constructor(address _x2y2Tokenaddress _rewardTokenaddress _tokenDistributor
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.