Quipuswap
  • introduction
    • What is QuipuSwap?
    • Participants
    • QuipuSwap subprojects
      • QuipuSwap Farms
      • Quipuswap Stable DEX
      • Token to Token Swaps
      • Governance (text-only)
  • Get Started
    • Install Wallet
    • How to get TEZ
    • How to find my tokens
    • Connect wallet
    • FAQ
  • Dex Guides
    • Overview
    • Types of the exchange (Token/TEZ, Token/Token)
    • How to use the DEX
      • Trade
      • How to add liquidity to an existing liquidity pool
      • How to create a new liquidity pool
      • How to remove liquidity
      • How to vote for a baker
      • How to ban/veto a baker
  • Tezos Tokens
    • What is a Token?
    • What is the difference between FA1.2 and FA2 standards?
    • QUIPU Tokenomics
  • Smart Contracts
    • Dex token edition
      • Overview
      • Dex
      • Exceptions
    • QuipuSwap stable swap DEX
      • 🛠️Developer module
        • 📄Storage & action types
        • 🔵Developer setter entrypoints
          • set_dev_address
          • set_dev_fee
      • 🏠Standalone DEX
        • 📄Storage and types overview
        • 🟡Initialization
          • set_admin_function
          • set_dev_function
          • set_dex_function
          • set_token_function
        • 🟠Add new dex
          • add_pool
        • 🔵DEX methods
          • invest
          • swap
          • 📤Divesting
            • divest
            • divest_imbalanced
            • divest_one_coin
          • 🤑DEX rewards
            • claim_referral
            • stake
        • 🛠️Developer methods
          • claim_developer
          • Dev module entrypoints
        • 🛑Admin methods
          • add_rem_managers
          • ramp_A
          • set_admin
          • set_fees
          • stop_ramp_A
      • 🏭Factory
        • 📄Storage and types overview
        • 🟡Initial setup
          • set_init_function
          • set_dev_function
          • DEX compiled codebase setup
            • set_admin_function
            • set_dex_function
            • set_token_function
        • 🟠Initialize new DEX flow
          • add_pool
          • start_dex
        • 💱Deployed from factory DEX
          • 📄Storage and types overview
          • 🟡Initialization
            • copy_dex_function
            • freeze
          • 🔵DEX methods
          • 🛠️Claim developer rewards
          • 🛑Admin methods
        • 🛑Developer methods
          • claim_rewards
          • 🧑‍💻Factory management
            • 🟢Factory params
              • set_burn_rate
              • set_price
              • set_whitelist
            • 🔵Dev module entrypoints
    • Dex 2.0
      • ⁉️Errors overview
      • 🥐BakerRegistry contract
        • Storage and types overview
        • Entrypoints overview
          • validate
          • register
      • ⚙️FlashSwapsProxy contract
        • Storage and types overview
        • Entrypoints overview
          • default
      • 🧺Bucket contract
        • Storage and types overview
        • Entrypoints overview
          • fill
          • pour_out
          • pour_over
          • withdraw_rewards
          • ban_baker
          • vote
          • default
        • On-chain views overview
          • is_banned_baker
          • get_tez_balance
          • get_user_candidate
      • ⚖️Auction contract
        • Storage and types overview
        • Entrypoints overview
          • Auction entrypoints
            • receive_fee
            • launch_auction
            • place_bid
            • claim
          • Admin entrypoints
            • set_admin
            • confirm_admin
            • set_baker
            • set_fees
            • set_auction_duration
            • set_min_bid
            • update_whitelist
            • withdraw_dev_fee
            • withdraw_public_fee
            • burn_bid_fee
      • 🏦DexCore contract
        • Storage and types overview
        • Entrypoints overview
          • DEX entrypoints
            • launch_exchange
            • invest_liquidity
            • divest_liquidity
            • swap
            • withdraw_profit
            • claim_interface_fee
            • claim_interface_tez_fee
            • withdraw_auction_fee
            • vote
          • Admin entrypoints
            • set_admin
            • confirm_admin
            • set_flash_swaps_proxy
            • set_auction
            • add_managers
            • set_fees
            • set_collecting_period
            • update_token_metadata
            • ban
          • Permits' entrypoints
            • permit
            • set_expiry
          • FA2 entrypoints
            • transfer
            • update_operators
            • balance_of
          • Callbacks
            • launch_callback
            • flash_swap_callback
            • close
        • On-chain views overview
          • check_is_banned_baker
          • get_reserves
          • get_total_supply
          • get_swap_min_res
          • get_toks_per_share
          • get_cumulative_prices
          • get_collecting_period
    • Trusted contracts
    • Farming
      • Referral system overview
      • Fees overview
      • Rewards precision overview
      • BakerRegistry contract
        • Storage and types overview
        • Entrypoints overview
          • validate
          • register
      • Burner contract
        • Storage and types overview
        • Entrypoints overview
          • default
          • burn_callback
      • ProxyMinter contract
        • Storage and types overview
        • Entrypoints overview
          • Admin entrypoints
            • add_minter
            • withdraw_tokens
            • set_admin
            • confirm_admin
          • Minter entrypoint
            • mint_tokens
      • QFarm contract
        • Storage and types overview
        • Entrypoints overview
          • Farming entrypoints
            • deposit
            • withdraw
            • harvest
          • FA2 entrypoints
            • transfer
            • update_operators
            • balance_of
          • Admin entrypoints
            • set_admin
            • confirm_admin
            • set_fees
            • set_reward_per_second
            • set_burner
            • set_proxy_minter
            • set_baker_registry
            • set_is_v1_lp
            • ban_bakers
            • add_new_farm
            • pause_farms
            • burn_tez_rewards
            • withdraw_farm_depo
            • update_token_metadata
          • Other entrypoints
            • burn_farm_rewards
            • default
      • TFarm contract
        • Storage and types overview
        • Entrypoints overview
          • Farming entrypoints
            • deposit
            • withdraw
            • harvest
          • FA2 entrypoints
            • transfer
            • update_operators
            • balance_of
          • Admin entrypoints
            • set_admin
            • confirm_admin
            • set_fees
            • set_reward_per_second
            • set_burner
            • set_baker_registry
            • set_is_v1_lp
            • ban_bakers
            • add_new_farm
            • pause_farms
            • burn_tez_rewards
            • claim_farm_rewards
            • withdraw_farm_depo
            • update_token_metadata
          • Other entrypoints
            • default
  • Brand and Logos
Powered by GitBook
On this page
  • DexCore errors
  • Bucket errors
  • Auction errors
  • Common errors
  1. Smart Contracts
  2. Dex 2.0

Errors overview

PreviousDex 2.0NextBakerRegistry contract

Last updated 3 years ago

All errors in the project are represented as string codes. The main purpose of this decision is the reduction of gas to be paid by users. Here you can find all errors codes and their explanation.

DexCore errors

  • 100 - unknown lambda function ID.

  • 101 - lambda function is already set.

  • 102 - wrong lambda function index (too high).

  • 103 - can't unpack lambda function.

  • 104 - wrong order of a tokens from parameters.

  • 105 - zero token A amount in.

  • 106 - zero token B amount in.

  • 107 - pair (pool) with the specified token_id already listed.

  • 108 - pair (pool) with the specified token_id not listed.

  • 109 - pair doesn't have a liquidity.

  • 110 - zero amount of LP tokens (shares) expected.

  • 111 - low token A amount in.

  • 112 - low token B amount in.

  • 113 - a contract not found (not TOK/TEZ LP pair).

  • 114 - insufficient liquidity.

  • 115 - dust output (zero tokens amount expected).

  • 116 - high expectations of output tokens.

  • 117 - empty route of swaps.

  • 118 - zero amount in was passed as the parameter.

  • 119 - wrong route of a swap.

  • 120 - wrong TEZ amount were passed to the transaction.

  • 121 - entrypoint of contract isn't found.

  • 122 - entrypoint of contract isn't found.

  • 123 - entrypoint of contract isn't found.

  • 124 - entrypoint of contract isn't found.

  • 125 - view of contract isn't found.

  • 126 - entrypoint of contract isn't found.

  • 127 - view of contract isn't found.

  • 128 - entrypoint of contract isn't found.

  • 129 - wrong amount of flash swap returns.

  • 130 - referring on yourself is forbidden.

  • 131 - entrypoint of contract isn't found.

  • 132 - insufficient interface fee balance.

  • 133 - view of contract isn't found.

  • 134 - entrypoint of contract isn't found.

  • 135 - entrypoint of contract isn't found.

  • 136 - reentrancy.

  • 137 - entrypoint of contract isn't found.

  • 138 - only entered (transaction must be not the first transaction in the chain of calls).

  • 139 - too few swaps.

  • 140 - can't perform voting because of zero LPs balance of the user.

  • 141 - wrong amount of TEZ tokens were attached to transaction.

  • 142 - wrong reserves state after execution of the operation.

  • 143 - pair_id parameter not provided (in case of withdrawing TEZ tokens).

  • 144 - action outdated (the time until which the transaction remained valid was passed).

Bucket errors

Auction errors

  • 300 - unknown lambda function ID.

  • 301 - can't unpack lambda function.

  • 302 - wrong lambda function index (too high).

  • 303 - lambda function is already set.

  • 304 - auction with the specified ID not found.

  • 305 - token for auction is whitelisted. It is not possible to start an auction with whitelisted tokens.

  • 306 - token for withdrawing is NOT whitelisted.

  • 308 - user's bid is less than minimum bid for an auction launch or less that previous bid.

  • 309 - auction is already finished or rewards are already claimed.

  • 310 - auction is not finished.

  • 311 - wrong auction duration (less than or equal to 0).

Common errors

  • 400 - sender of the transaction is not current administrator.

  • 401 - sender of the transaction is not current pending administrator (not the address that was assigned by the current administrator to the shift).

  • 402 - sender of the transaction is not a manager.

  • 404 - transfer entrypoint of FA12 token isn't found.

  • 405 - transfer entrypoint of FA2 token isn't found.

  • 406 - not a nat (not an unsigned integer).

  • 407 - wrong token type.

  • 408 - division by zero.

  • 409 - TEZ tokens receiver contract not found (not user account or contract doesn't have a default entrypoint).

  • 411 - pending_admin in the storage of a contract is None (admin didn't call set_admin entrypoint).

  • 412 - non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).

200 - entrypoint of contract isn't found.

201 - view of contract isn't found.

202 - view of contract isn't found.

307 - contract have insufficient balance of tokens for a new auction launch.

403 - sender of the transaction is not contract.

410 - entrypoint of contract isn't found.

⁉️
validate
BakerRegistry
get_total_supply
DexCore
get_collecting_period
DexCore
Auction
DexCore
fill
Bucket
Bucket
pour_out
Bucket
pour_over
Bucket
ban_baker
Bucket
vote
Bucket
is_banned_baker
Bucket
default
FlashSwapsProxy
get_tez_balance
Bucket
flash_swap_callback
DexCore
withdraw_rewards
Bucket
get_user_candidate
Bucket
DexCore
receive_fee
Auction
close
DexCore
launch_callback