InflationL2
Overview
License: Apache 2.0
contract InflationL2 is IInflationAuthor: Gabriele Rigo - gab@rigoblock.com
Inflation on L2s is only produced by distributing tokens owned by this contract.
excess tokens are held in this contract until fully distributed.
State variables info
rigoToken (0xd6c1aca7)
address rigoTokenstakingProxy (0x22f80d11)
address stakingProxyepochLength (0x57d775f8)
uint48 epochLengthslot (0x1a88bc66)
Modifiers info
onlyInitializer
onlyStakingProxy
alreadyInitialized
Functions info
constructor
initParams (0xe6881113)
We initialize parameters here instead of in the constructor.
On L2, inflation depends on staking proxy, which depends on inflation.
As deterministic deployment addresses are affected by the constructor, we save params in storage.
mintInflation (0xc551a2f9)
Allows staking proxy to mint rewards.
Return values:
mintedInflation
uint256
Number of allocated tokens.
epochEnded (0x175db3c4)
Returns whether an epoch has ended.
Return values:
[0]
bool
Bool the epoch has ended.
getEpochInflation (0xe9a0bae7)
Returns the epoch inflation.
Return values:
[0]
uint256
Value of units of GRG minted in an epoch.
timeUntilNextClaim (0x6dd73944)
Returns how long until next claim.
Return values:
[0]
uint256
Number in seconds.
Last updated