IStorage
Overview
License: Apache 2.0
interface IStorageFunctions info
stakingContract (0xee99205c)
function stakingContract() external view returns (address)Address of staking contract.
Return values:
[0]
address
stakingContract Address of the staking contract.
poolIdByRbPoolAccount (0x7fa140c7)
function poolIdByRbPoolAccount(address) external view returns (bytes32)Mapping from RigoBlock pool subaccount to pool Id of rigoblock pool
0 RigoBlock pool subaccount address.
Return values:
[0]
bytes32
0 The pool ID.
rewardsByPoolId (0xc18c9141)
mapping from pool ID to reward balance of members
0 Pool ID.
Return values:
[0]
uint256
0 The total reward balance of members in this pool.
currentEpoch (0x76671808)
The current epoch.
Return values:
[0]
uint256
currentEpoch The number of the current epoch.
currentEpochStartTimeInSeconds (0x587da023)
The current epoch start time.
Return values:
[0]
uint256
currentEpochStartTimeInSeconds Timestamp of start time.
validPops (0x540c2d53)
Registered RigoBlock Proof_of_Performance contracts, capable of paying protocol fees.
0 The address to check.
Return values:
[0]
bool
0 Whether the address is a registered proof_of_performance.
epochDurationInSeconds (0x63403801)
Minimum seconds between epochs.
Return values:
[0]
uint256
epochDurationInSeconds Number of seconds.
rewardDelegatedStakeWeight (0xe0ee036e)
Return values:
[0]
uint32
rewardDelegatedStakeWeight Number in units of a million.
minimumPoolStake (0xa26171e2)
Minimum amount of stake required in a pool to collect rewards.
Return values:
[0]
uint256
minimumPoolStake Minimum amount required.
cobbDouglasAlphaNumerator (0x81666796)
Numerator for cobb douglas alpha factor.
Return values:
[0]
uint32
cobbDouglasAlphaNumerator Number of the numerator.
cobbDouglasAlphaDenominator (0xe8eeb3f8)
Denominator for cobb douglas alpha factor.
Return values:
[0]
uint32
cobbDouglasAlphaDenominator Number of the denominator.
poolStatsByEpoch (0x2a94c279)
Stats for each pool that generated fees with sufficient stake to earn rewards.
See _minimumPoolStake in MixinParams.
Parameters:
key
bytes32
Pool ID.
epoch
uint256
Epoch number.
Return values:
feesCollected
uint256
Amount of fees collected in epoch.
weightedStake
uint256
Weighted stake per million.
membersStake
uint256
Members stake per million.
aggregatedStatsByEpoch (0x38229d93)
Aggregated stats across all pools that generated fees with sufficient stake to earn rewards.
See _minimumPoolStake in MixinParams.
Parameters:
epoch
uint256
Epoch number.
Return values:
rewardsAvailable
uint256
Rewards (GRG) available to the epoch being finalized (the previous epoch).
numPoolsToFinalize
uint256
The number of pools that have yet to be finalized through finalizePools().
totalFeesCollected
uint256
The total fees collected for the epoch being finalized.
totalWeightedStake
uint256
The total fees collected for the epoch being finalized.
totalRewardsFinalized
uint256
Amount of rewards that have been paid during finalization.
grgReservedForPoolRewards (0xd14dc231)
The GRG balance of this contract that is reserved for pool reward payouts.
Return values:
[0]
uint256
grgReservedForPoolRewards Number of tokens reserved for rewards.
Last updated