Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

staker package

Overview

Package staker manages liquidity mining rewards for GnoSwap positions.

The staker distributes GNS emissions and external incentives to liquidity providers based on their position size, price range, and staking duration. It supports both internal GNS rewards and external token incentives.

Reward calculations combine elapsed-time rates with tick/range accumulation, and collection flows are integrated into the staking lifecycle.

Function

NewWarmup

func NewWarmup(timeDuration, nextWarmupTime int64, warmupRatio uint64) Warmup

NewWarmup creates one warmup tier.

Parameters:

  • timeDuration: Duration of this tier in seconds.
  • nextWarmupTime: Unix timestamp at which this tier ends.
  • warmupRatio: Percentage of the calculated reward credited to the position, from 0 to 100.

Returns:

  • warmup: Warmup tier initialized with the supplied duration, end time, and ratio.

Params

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/staker.NewWarmup(,,)"

Result