GnoSwap Docs
  • Welcome
  • Why GnoSwap?
  • Disclaimer
    • General Disclaimer
    • Risk and Security
  • User Guide
    • Getting Started
      • Create an Account
        • Adena Wallet
        • Social Login
      • Connect to GnoSwap
      • Quick Tour
    • Trading
      • Swap Tokens
      • Swap With Details
    • Providing Liquidity
      • Create a Pool
      • Create a Position
      • Remove a Position
      • Reposition
      • Increase Liquidity
      • Decrease Liquidity
    • Staking
      • Stake Positions
      • Claim Rewards
      • Unstake Positions
      • Add Incentives
    • Launchpad
      • Participate in Launches
    • Governance
      • Delegate
      • Undelegate
      • Create a Proposal
      • Vote
  • core concepts
    • AMM
      • Constant Product Market Maker
      • Problem: Lazy Liquidity
      • Concentrated Liquidity
    • Positions
    • Liquidity Mining
    • Fees
    • Governance
    • Launchpad
  • GnoSwap Token
    • What's GNS?
    • Genesis Supply
    • Emission
    • Release Schedule
    • xGNS
  • Contracts
    • Overview
    • Errors
      • Pool
      • Position
      • Router
      • Staker
      • Governance
      • Launchpad
    • Pool
      • pool.gno
      • pool_manager.gno
      • protocol_fee_pool_creation.gno
      • protocol_fee_withdrawal.gno
    • Position
      • position.gno
    • Router
      • exact_in.gno
      • exact_out.gno
      • protocol_fee_swap.gno
    • Staker
      • staker.gno
      • mint_stake.gno
      • protocol_fee_unstaking.gno
      • external_deposit_fee.gno
    • Governance
      • staker.gno
      • proposal.gno
      • vote.gno
      • execute.gno
    • Launchpad
      • launchpad.gno
      • deposit.gno
      • reward.gno
  • References
    • Onboarding Guide
    • Warm-up Periods
    • Leaderboard
    • VWAP
    • FAQ
  • urls
    • GitHub
    • X (Twitter)
    • Discord
    • Medium
Powered by GitBook
On this page

Was this helpful?

  1. Contracts
  2. Errors

Staker

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

Code
Error
Description

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

Pool not found

Occurs when non incentivized pool is used.

GNOSWAP-STAKER-003

Already registered token

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

GNOSWAP-STAKER-004

Insufficient reward

Occurs when staker does not have enoguh balance to give reward.

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 data

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 staked 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

Can not 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 delete 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 pool path

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 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

Unexpected 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 incentive duration

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

GNOSWAP-STAKER-026

Not allowed for external reward

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

GNOSWAP-STAKER-027

Invalid warm-up duration.

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

GNOSWAP-STAKER-028

Invalid tick cross

Occurs when tick cross is invalid.

GNOSWAP-STAKER-029

Incentive already exists

Occurs when same reward are being created in single transaction.

GNOSWAP-STAKER-030

Incentive not found

Occurs when requested incentive is not found

GNOSWAP-STAKER-031

Warm-up amount not found

Occurs when requested warm-up amount is not found.

GNOSWAP-STAKER-032

Overflow

Occurs when mathematical results overflows numeric range.

PreviousRouterNextGovernance

Last updated 3 months ago

Was this helpful?