Staker

The following table outlines potential errors that may occur during interactions with the staker contract in GnoSwap:

CodeErrorDescription

GNOSWAP-STAKER-001

Caller has no permission

Occurs when a user without the necessary permissions attempts an action restricted to authorized callers.

GNOSWAP-STAKER-002

Not registered token

Occurs when a token used in an operation has not been registered within the staker contract.

GNOSWAP-STAKER-003

Already registered token

Occurs when an attempt is made to register a token that has already been registered.

GNOSWAP-STAKER-004

Can't transfer token while locked

Occurs when a user tries to transfer tokens that are currently locked and cannot be moved.

GNOSWAP-STAKER-005

Wrap, unwrap failed

Occurs when an attempt to wrap or unwrap tokens fails, potentially due to insufficient balance or incorrect parameters.

GNOSWAP-STAKER-006

Can not wrap less than minimum amount

Occurs when the user attempts to wrap an amount below the minimum allowed, which is not permissible.

GNOSWAP-STAKER-007

Invalid input

Occurs when input data does not meet the required format or values for a staking operation.

GNOSWAP-STAKER-008

Invalid unstaking fee

Occurs when an invalid unstaking fee is specified, such as a fee outside the acceptable range.

GNOSWAP-STAKER-009

Already staekd position

Occurs when an attempt is made to stake a position that is already staked.

GNOSWAP-STAKER-010

Pool is not incentivized

Occurs when a staking operation references a pool that has no incentives assigned.

GNOSWAP-STAKER-011

Out of range

Occurs when a numeric value, such as a reward amount, is outside the allowed range for the staking contract.

GNOSWAP-STAKER-012

Can not end incentive

Occurs when an incentive program is still active, and an attempt is made to end it prematurely.

GNOSWAP-STAKER-013

Invalid incentive start time

Occurs when an invalid start time is provided for an incentive program.

GNOSWAP-STAKER-014

Invalid incentive end time

Occurs when an invalid end time is specified for an incentive program.

GNOSWAP-STAKER-015

Cannot use for external reward

Occurs when an attempt is made to use a non-permissible token for external rewards.

GNOSWAP-STAKER-016

Emission minimum tier is 1

Occurs when an emission tier below the minimum required level is set, which is not allowed.

GNOSWAP-STAKER-017

Can not default default pool tier 1

Occurs when an attempt is made to set the default emission tier for a pool to tier 1, which is restricted.

GNOSWAP-STAKER-018

Can not delete default external token

Occurs when there is an attempt to delete a default token used for external rewards, which is not allowed.

GNOSWAP-STAKER-019

Invalid pooPath

Occurs when an invalid or non-existent pool path is provided for staking or rewards.

GNOSWAP-STAKER-020

Invalid pool tier

Occurs when an invalid pool tier is specified, which does not align with the staking contract's tier requirements.

GNOSWAP-STAKER-021

Pool already has in emission target

Occurs when an attempt is made to add an emission target to a pool that already has one assigned.

GNOSWAP-STAKER-022

Requested data not found

Occurs when the system cannot locate the requested data needed for a staking operation.

GNOSWAP-STAKER-023

Unexepcetd calculation result

Occurs when a calculation within the staking contract produces an unexpected or invalid result.

GNOSWAP-STAKER-024

Zero liquidity

Occurs when an operation that requires positive liquidity is attempted with zero liquidity.

GNOSWAP-STAKER-025

Invalid incetnive duration

Occurs when the specified duration for an incentive program is outside the acceptable range.

GNOSWAP-STAKER-026

Not allowed for external reward token

Occurs when an operation attempts to use a token not approved for external rewards.

GNOSWAP-STAKER-027

Invalid wram-up duration

Occurs when an invalid warm-up duration is specified, which does not meet contract requirements.

Last updated