ERC1155Staking

Verified contract

Active on Base with 2,940 txns
Deployed by via 0x710cdb02 at 15692329
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
ERC-20
--
 (#2)
ERC-1555
--
ERC-20
--
ERC-20
--
0x53c7fc94a6adb02ace73fc74c3ee7e4df387a703fbd898bfc1b2c0ac768ae0d8
0x64051ae4bd3b2c2e54914f96618b30c1f673f63fdf2095ee362f311c4bb34339
0x22d6c0d5e1c74fcc2c394b4395c0fd907efeaf6d2d2008933ae1f80e65d5ecb1
0x8299bbed7029a74569279f478005e0ff38dfc0778e2db347fbffae67c8fe8954
0x8ad79296053f125d0652e7b8ce22d8149e7dfed5a379d179c958ef9a7c689fc5
0x34422e01bfcb292f676e7195794513c097a98a53cd33a522a0677ab778e78d81
0xb46ae91ce7f56aed7f1fb615c944dc95b5e0d8e5a69de18e4be6600bb73d0cab
0x0a3273e006c7ee2b5a72290d87731fe6879d55a4a4b8935b61402a3f93f10440
0x66905fe426e831978b163ae032fbfb79f6e426a61d289b13a427511a07557f44
0x7a35c1c9839c9cbf634a8a738f6da9864d0bceb2c7771ebf41f4f751cba00d73

Functions
Getter at block 22906201
AGENT_FEE_PERCENTAGE(view returns (uint256)
1
DAO_FEE_PERCENTAGE(view returns (uint256)
30
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
MANAGER_FEE_PERCENTAGE(view returns (uint256)
5
MAX_NFT_STAKED(view returns (uint256)
10000
MAX_REWARD(view returns (uint256)
1000000000000000000000000000
ManagerWallet(view returns (address)
0xaf70641d93e3e7fa3790ec75efaecae1bc0f7696
POOL_FINISHED(view returns (bool)
false
STAKING_PERIOD(view returns (uint256)
157680000
contractURI(view returns (string)
ipfs://QmdQChkiVeoKyvdJfoCb5Ar21kmrAKhe89NFchNhTNVCqJ/0
daoAddress(view returns (address)
0xf2a0eba5efffc280b078685469287e7e3e7fa436
deployer(view returns (address)
0x90db3ab690fafefee2f09b79cf2a8ab03023c6c0
erc1155Token(view returns (address)
0x9fca3b2e70718cdae99eab0f508ec129af83d059
getRemainingStakingTime(view returns (uint256)
131240651
getRewardPerSec(pure returns (uint256)
634195839675291
getStakersCount(view returns (uint256)
102
poolStartTime(view returns (uint256)
1706162400
rewardsToken(view returns (address)
0xf2d3d488626a117984fda70f8106abc0049018d3
stakingTokenId(view returns (uint256)
2
totalRewardsDistributed(view returns (uint256)
17519662174023318238264956
Read-only
DAO_FEE_PERCENTAGES(uint256view returns (uint256)
calculateReward(address _userview returns (uint256)
calculateRewards(address _userview returns (uint256 userRewarduint256 daoFeeuint256 managerFee)
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address member)
getRoleMemberCount(bytes32 roleview returns (uint256 count)
hasRole(bytes32 roleaddress accountview returns (bool)
hasRoleWithSwitch(bytes32 roleaddress accountview returns (bool)
stakers(uint256view returns (address)
stakings(addressview returns (uint256 amountuint256 rewarduint256 updateTime)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
adminUnstakeAll(
adminUnstakeUser(address _user
claim(
claimAgent(address _user
grantRole(bytes32 roleaddress account
multicall(bytes[] datareturns (bytes[] results)
onERC1155BatchReceived(addressaddressuint256[]uint256[]bytesreturns (bytes4)
onERC1155Received(addressaddressuint256uint256bytesreturns (bytes4)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setContractURI(string _uri
setDaoAddress(address _daoAddress
setManagerFeeWallet(address _ManagerWallet
setPoolFinished(bool status
setPoolStartTime(uint256 _poolStartTime
stake(uint256 _amount
withdraw(uint256 _amount
Events
ContractURIUpdated(string prevURIstring newURI
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Constructor
constructor(address _erc1155Tokenuint256 _stakingTokenIduint256 _poolStartTimeuint256 _boforeRewardsDistributedaddress _erc20Tokenaddress _daoAddressaddress _ManagerWalletstring _contractURI
Fallback and receive

This contract contains no fallback and receive objects.

Errors
ContractMetadataUnauthorized(
PermissionsAlreadyGranted(address accountbytes32 role
PermissionsInvalidPermission(address expectedaddress actual
PermissionsUnauthorizedAccount(address accountbytes32 neededRole
ReentrancyGuardReentrantCall(