StandardRewards

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x72a27e34 at 15255759
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 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 41 additional slots

No balances found for "StandardRewards"

No transactions found for "StandardRewards"


Functions
Getter at block 21216541
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
 
programIds(view returns (uint256[])
roleAdmin(pure returns (bytes32)
0x2172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096
version(pure returns (uint16)
4
Read-only
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
isProgramActive(uint256 idview returns (bool)
isProgramPaused(uint256 idview returns (bool)
latestProgramId(address poolview returns (uint256)
pendingRewards(address provideruint256[] idsview returns (uint256)
programRewards(uint256 idview returns (struct Rewards)
programStake(uint256 idview returns (uint256)
programs(uint256[] idsview returns (struct ProgramData[])
providerProgramIds(address providerview returns (uint256[])
providerRewards(address provideruint256 idview returns (struct ProviderRewards)
providerStake(address provideruint256 idview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
claimRewards(uint256[] idsreturns (uint256)
createProgram(address pooluint256 totalRewardsuint32 startTimeuint32 endTimereturns (uint256)
depositAndJoin(uint256 iduint256 tokenAmountpayable 
grantRole(bytes32 roleaddress account
initialize(
join(uint256 iduint256 poolTokenAmount
leave(uint256 iduint256 poolTokenAmount
pauseProgram(uint256 idbool pause
postUpgrade(bytes data
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
stakeRewards(uint256[] idsreturns (struct StakeAmounts)
terminateProgram(uint256 id
Events
ProgramCreated(address indexed pooluint256 indexed programIdaddress indexed rewardsTokenuint256 totalRewardsuint32 startTimeuint32 endTime
ProgramPaused(address indexed pooluint256 indexed programIdbool paused
ProgramTerminated(address indexed pooluint256 indexed programIduint32 endTime
ProviderJoined(address indexed pooluint256 indexed programIdaddress indexed provideruint256 poolTokenAmountuint256 prevStake
ProviderLeft(address indexed pooluint256 indexed programIdaddress indexed provideruint256 poolTokenAmountuint256 remainingStake
RewardsClaimed(address indexed pooluint256 indexed programIdaddress indexed provideruint256 amount
RewardsStaked(address indexed pooluint256 indexed programIdaddress indexed provideruint256 amount
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 initNetworkaddress initNetworkSettingsaddress initBNTGovernanceaddress initVBNTaddress initBNTPool
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessDenied(
AlreadyExists(
AlreadyInitialized(
ArrayNotUnique(
DoesNotExist(
InvalidAddress(
InvalidParam(
NativeTokenAmountMismatch(
NotWhitelisted(
ProgramInactive(
ProgramSuspended(
RewardsTooHigh(
ZeroValue(