ONXRewards

Verified contract

Implementation

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

No balances found for "ONXRewards"

No transactions found for "ONXRewards"


Functions
Getter at block 20814208
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
decimals(view returns (uint8)
18
name(view returns (string)
onxToken(view returns (address)
0x0000000000000000000000000000000000000000
symbol(view returns (string)
totalSupply(view returns (uint256)
0
Read-only
allowance(addressaddressview returns (uint256)
balanceOf(addressview returns (uint256)
earned(address _accountaddress _rewardsTokenview returns (uint256)
getRewardForDuration(address _rewardsTokenview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
lastTimeRewardApplicable(address _rewardsTokenview returns (uint256)
rewardData(addressview returns (uint256 rewardsDurationuint256 periodFinishuint256 rewardRateuint256 lastUpdateTimeuint256 rewardPerTokenStored)
rewardPerToken(address _rewardsTokenview returns (uint256)
rewardTokens(uint256view returns (address)
rewards(addressaddressview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
userRewardPerTokenPaid(addressaddressview returns (uint256)
State-modifying
addReward(address _rewardsTokenuint256 _rewardsDuration
approve(address _spenderuint256 _valuereturns (bool)
deposit(uint256 _value
getReward(
grantRole(bytes32 roleaddress account
initialize(string _namestring _symboladdress _onx
notifyRewardAmount(address _rewardsTokenuint256 _reward
recoverERC20(address _tokenAddressuint256 _tokenAmount
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
setRewardsDuration(address _rewardsTokenuint256 _rewardsDuration
transfer(address _touint256 _valuereturns (bool)
transferFrom(address _fromaddress _touint256 _valuereturns (bool)
withdraw(uint256 _value
Events
Approval(address indexed owneraddress indexed spenderuint256 value
Recovered(address tokenuint256 amount
RewardAdded(uint256 reward
RewardPaid(address indexed useraddress indexed rewardsTokenuint256 reward
RewardsDurationUpdated(address tokenuint256 newDuration
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Transfer(address indexed fromaddress indexed touint256 value
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.