Contract Error Codes

the Cetus smart contract may return the following error codes:

Module
Error Code
Description
Contract Methods

stable_farming::pool

1

Invalid CLMM Pool ID

collect_clmm_reward, collect_fee

stable_farming::pool

2

Pool Position Not Match

remove_liquidity, deposit,withdraw,harvest ,add_liquidity,add_liquidity_fix_coin

stable_farming::pool

3

Pool CLMM Pool Not Match

remove_liquidity, add_liquidity ,add_liquidity_fix_coin

stable_farming::pool

4

Rewarder Not Harvested

withdraw,

stable_farming::pool

5

Effective Range Error

check_effective_range

stable_farming::pool

6

Rewarder Not Exists

harvest

stable_farming::pool

7

Rewarder Already Exists

add_rewarder

stable_farming::pool

8

Pool Has No Rewarder

deposit

stable_farming::pool

9

Start Error

update_effective_tick_range

stable_farming::pool

10

Invalid Tick Range

calculate_position_share

stable_farming::pool

11

Invalid Sqrt Price

calculate_position_share

stable_farming::pool

12

Amount In Above Max Limit

add_liquidity_fix_coin_to_clmm,add_liquidity_to_clmm

stable_farming::pool

15

Amount Out Below Min Limit

remove_liquidity_from_clmm

Last updated