NewPoolTierBy
NewPoolTierBy reconstructs a PoolTier from persisted membership, ratios, counts, and callbacks.
Parameters:
- membership: Persisted pool-path-to-tier mapping.
- tierRatio: Persisted reward-share ratio for each tier.
- counts: Persisted number of pools in each tier index.
- lastRewardCacheTimestamp: Timestamp through which reward caches have been materialized.
- currentEmission: Emission rate currently used for reward accrual.
- getEmission: Callback returning the current staker emission rate or an error.
- getHalvingBlocksInRange: Callback returning halving timestamps and corresponding emissions in [start, end).
Returns:
- *PoolTier: Reconstructed tier manager using the supplied persisted state and callbacks.
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/staker/v1.NewPoolTierBy(,,,,,,)"
Result