TokenStake

Verified contract

Implementation

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

No balances found for "TokenStake"

No transactions found for "TokenStake"


Functions
Getter at block 21822905
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
contractType(pure returns (bytes32)
0x546f6b656e5374616b6500000000000000000000000000000000000000000000
contractURI(view returns (string)
contractVersion(pure returns (uint8)
1
 
getRewardRatio(view returns (uint256 _numeratoruint256 _denominator)
getRewardTokenBalance(view returns (uint256)
0
 
getTimeUnit(view returns (uint80 _timeUnit)
rewardToken(view returns (address)
0x0000000000000000000000000000000000000000
rewardTokenDecimals(view returns (uint16)
0
stakingToken(view returns (address)
0x0000000000000000000000000000000000000000
stakingTokenBalance(view returns (uint256)
0
stakingTokenDecimals(view returns (uint16)
0
Read-only
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address member)
getRoleMemberCount(bytes32 roleview returns (uint256 count)
getStakeInfo(address _stakerview returns (uint256 _tokensStakeduint256 _rewards)
hasRole(bytes32 roleaddress accountview returns (bool)
hasRoleWithSwitch(bytes32 roleaddress accountview returns (bool)
isTrustedForwarder(address forwarderview returns (bool)
stakers(addressview returns (uint128 timeOfLastUpdateuint64 conditionIdOflastUpdateuint256 amountStakeduint256 unclaimedRewards)
stakersArray(uint256view returns (address)
State-modifying
claimRewards(
depositRewardTokens(uint256 _amountpayable 
grantRole(bytes32 roleaddress account
initialize(address _defaultAdminstring _contractURIaddress[] _trustedForwardersaddress _rewardTokenaddress _stakingTokenuint80 _timeUnituint256 _rewardRatioNumeratoruint256 _rewardRatioDenominator
multicall(bytes[] datareturns (bytes[] results)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setContractURI(string _uri
setRewardRatio(uint256 _numeratoruint256 _denominator
setTimeUnit(uint80 _timeUnit
stake(uint256 _amountpayable 
withdraw(uint256 _amount
withdrawRewardTokens(uint256 _amount
Events
ContractURIUpdated(string prevURIstring newURI
Initialized(uint8 version
RewardTokensDepositedByAdmin(uint256 _amount
RewardTokensWithdrawnByAdmin(uint256 _amount
RewardsClaimed(address indexed stakeruint256 rewardAmount
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokensStaked(address indexed stakeruint256 amount
TokensWithdrawn(address indexed stakeruint256 amount
UpdatedMinStakeAmount(uint256 oldAmountuint256 newAmount
UpdatedRewardRatio(uint256 oldNumeratoruint256 newNumeratoruint256 oldDenominatoruint256 newDenominator
UpdatedTimeUnit(uint256 oldTimeUnituint256 newTimeUnit
Constructor
constructor(address _nativeTokenWrapper
Fallback and receive
receive(
Errors

This contract contains no error objects.