inflation docs

Inflation

rigoToken

address rigoToken

Returns the address of the GRG token.

Return Values

stakingProxy

address stakingProxy

Returns the address of the GRG staking proxy.

Return Values

epochLength

uint48 epochLength

Returns the epoch length in seconds.

Return Values

slot

uint32 slot

Returns epoch slot.

Increases by one every new epoch.

Return Values

_ANNUAL_INFLATION_RATE

uint32 _ANNUAL_INFLATION_RATE

_PPM_DENOMINATOR

uint32 _PPM_DENOMINATOR

_epochEndTime

uint48 _epochEndTime

onlyStakingProxy

modifier onlyStakingProxy()

constructor

constructor(address newRigoToken, address newStakingProxy) public

mintInflation

function mintInflation() external returns (uint256 mintedInflation)

Allows staking proxy to mint rewards.

Return Values

NameTypeDescription

mintedInflation

uint256

Number of allocated tokens.

epochEnded

function epochEnded() external view returns (bool)

Returns whether an epoch has ended.

Return Values

NameTypeDescription

[0]

bool

Bool the epoch has ended.

getEpochInflation

function getEpochInflation() public view returns (uint256)

Returns the epoch inflation.

Return Values

NameTypeDescription

[0]

uint256

Value of units of GRG minted in an epoch.

timeUntilNextClaim

function timeUntilNextClaim() external view returns (uint256)

Returns how long until next claim.

Return Values

NameTypeDescription

[0]

uint256

Number in seconds.

_assertCallerIsStakingProxy

function _assertCallerIsStakingProxy() private view

Asserts that the caller is the Staking Proxy.

_getEpochEndTime

function _getEpochEndTime() private view returns (uint256)

_getEpochLength

function _getEpochLength() private view returns (uint256)

_getRigoToken

function _getRigoToken() private view returns (address)

_getStakingProxy

function _getStakingProxy() private view returns (address)

Last updated