Turbos
  • 📖About Turbos
    • Getting Started
    • About Turbos Finance
    • Why Sui Network
  • 📽️Products
    • Concentrated Liquidity AMM
      • Fee Tier for Token Pairs
      • Oracle
    • Automated Rebalance Vault
      • Step-by-Step Guide
      • Referral Program
    • TurboStar
    • TurbosBoost
  • 💡Protocol Concepts
    • About Concentrated Liquidity
    • Fee Tiers
    • Glossary
  • 🪙Tokenomics
    • TURBOS
    • Token Utility
    • Emission Distribution
  • ⚙️Others
    • Roadmap
    • Audits
    • Brand kit
    • Risks
    • Token Address
  • Developer Docs
    • Dev Overview
    • via SDK
      • Get Started
      • Initialize SDK
      • Clmm
        • getConfig
        • getFeesConfig
        • getPools
        • getPool
        • createPool
        • createAndAddLiquidity
        • increaseLiquidity
        • decreaseLiquidity
        • removeLiquidityAndBurn
        • preSwap
        • swap
        • collect Fees
        • collect Rewards
        • Fee
        • Liquidity and coin amounts calculation
        • APR calculation
      • Vault
        • createAndDepositVault
        • depositVault
        • withdrawVault
        • withdrawAllVault
        • collectClmmRewardDirectReturnVault
        • closeVault
        • computeTokenWithdrawVaultSwapResult
        • getVaultBalanceAmount
        • getMyVaults
    • via Contract
      • Get Started
      • Data Structure
      • Error Code
  • Turbos Fun
    • Base
    • Create Pool
    • Calculate Token Amount
    • Buy
    • Sell
  • 📱Socials
    • Official website
    • Twitter
    • Discord
    • Medium
    • Zealy
  • Tutorials
    • Supported Wallets
      • SafePal Wallet
    • Move tutorial
    • Sui tutorial
Powered by GitBook
On this page
  1. Developer Docs
  2. via Contract

Error Code

Turbos Clmm

Module/File
ErrorCode
Description

clmm_math (math_liquidity.move)

0

The result of addition or subtraction would be negative or overflow.

1

Arithmetic overflow occurred during calculation.

clmm_math (math_u64.move)

0

Arithmetic overflow occurred in 64-bit unsigned integer operation.

clmm_math (math_u128.move)

0

Arithmetic overflow occurred in 128-bit unsigned integer operation.

1

Division by zero is not allowed.

clmm_math (i32.move)

0

Arithmetic overflow occurred in 32-bit signed integer operation.

clmm_math (i64.move)

0

Arithmetic overflow occurred in 64-bit signed integer operation.

clmm_math (i128.move)

0

Arithmetic overflow occurred in 128-bit signed integer operation.

clmm_math (math_sqrt_price.move)

0

Invalid square root price value.

1

Insufficient liquidity for the operation.

2

Denominator overflow occurred during calculation.

3

Arithmetic overflow occurred during calculation.

clmm_math (math_swap.move)

0

Invalid square root price value.

1

Insufficient liquidity for the swap operation.

2

Denominator overflow occurred during swap calculation.

partner.move

1

Partner already exists.

2

Invalid referral fee rate.

3

Partner name cannot be empty.

4

Invalid time range for partner.

5

Invalid partner specified.

6

Partner fee is empty.

pool_factory.move

0

Fee tier does not exist.

1

Invalid fee value.

2

Invalid tick spacing value.

3

Fee tier already exists.

4

Coin types must be different.

5

Pool already exists.

pool.move

0

Tick not found.

1

Invalid token amount.

3

Invalid mint return amount.

5

Invalid tick index.

6

No positions to poke.

7

Swap amount specified is zero.

8

Pool is currently locked.

11

Pool arithmetic overflow.

12

Invalid tick index.

13

Invalid reward index.

14

Invalid reward vault.

15

Invalid timestamp.

16

Invalid amount for removing reward.

17

Invalid reward manager.

18

Insufficient balance in reward vault.

19

Square root price is out of bounds.

20

Invalid direction for square root price limit.

21

Invalid coins provided.

22

Upgrade not allowed.

23

Incorrect pool version.

24

Repayment to the wrong pool.

25

Repayment amount is incorrect.

26

Insufficient liquidity in the pool.

27

Repayment to the wrong partner.

position_manager.move

4

No coins provided.

5

Price slippage check failed.

6

Position not cleared.

7

Invalid mint amount.

8

Transaction is too old.

9

Insufficient liquidity for the position.

10

Invalid reward index.

11

Position does not exist.

12

Position already exists.

14

Position migration failed.

15

Invalid pool specified.

16

Invalid tick range for burning.

swap_router.move

2

Transaction is too old.

4

Output amount is below the minimum threshold.

5

Input amount exceeds the maximum allowed.

6

Insufficient liquidity for two-step swap.

7

Provided coins are less than the required amount.

PreviousData StructureNextTurbos Fun

Last updated 3 days ago