github flare-foundation/go-flare v1.7.1804
v1.7.1804 Inflation-Based Staking (Coston2 testnet)

latest releases: v1.7.1807-js-tracers-enabled, v1.7.1807, v1.7.1807-coston2...
pre-release11 months ago

This hard fork for the Coston2 testnet adds inflation-based staking. The hard fork time is May 25th, 2023 at 15:00 UTC, please upgrade your Coston2 testnet nodes before that time.

The added function

func (e *ProposalTxExecutor) getCurrentInflationSettings(currentTimestamp time.Time) (uint64, uint64, uint64, uint32, time.Duration, time.Duration, time.Duration, time.Time)
takes the current timestamp of the P-chain, and returns parameters:

  • minValidatorStake: the minimum stake that a validator can have on the network. uint64
  • maxValidatorStake: the maximum stake that a validator can have on the network. uint64
  • minDelegatorStake: the minimum stake that a delegator can delegate to a validator. uint64
  • minDelegationFee: the minimum delegation fee percentage that is paid from the validator to the delegator. This will be set to zero in practice because rewards are disabled on the P-chain. uint32
  • minStakeDuration: the minimum length of time that a validator can be staked on the network. time.Duration
  • maxStakeDuration: the maximum length of time that a validator can be staked on the network. time.Duration
  • minFutureStartTimeOffset: the time delay between when a staking transaction is made and when a validator can become active. time.Duration
  • minStakeStartTime: the earliest date that a validator can set for their staking period to begin. time.Time

This enables a way to have future hard forks that change these parameters over time as more inflation has occurred on the network. Avalanche staking was originally designed for a capped supply asset, so this added function enables the same staking mechanism to be used with an uncapped supply asset.

What's Changed

  • v1.7.1804 Inflation-Based Staking in #11

Full Changelog: v1.7.1803...v1.7.1804

Don't miss a new go-flare release

NewReleases is sending notifications on new releases.