IsIncentiveActive
IsIncentiveActive reports whether an unrefunded incentive is active, including both start and end timestamps.
Parameters:
- poolPath: Pool path containing the incentive record.
- incentiveId: External incentive identifier to resolve.
Returns:
- active: True when the current Unix time is within the incentive window and it has not been refunded.
- 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.IsIncentiveActive(,)"
Result