GetIncentiveRewardPerSecondX128
GetIncentiveRewardPerSecondX128 returns the reward rate per second of an incentive, expressed as a Q128 fixed-point number (i.e. actual rate = value / 2^128). Callers needing an integer rate can right-shift the result by 128.
Parameters:
- poolPath: Pool path containing the incentive record.
- incentiveId: External incentive identifier to resolve.
Returns:
- rateX128: Clone of the Q128-scaled reward rate; divide by 2^128 to recover the actual token units per second.
- err: Non-nil when poolPath or incentiveId cannot be resolved.
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/staker.GetIncentiveRewardPerSecondX128(,)"
Result