Contract Error Codes
the Cetus smart contract may return the following error codes:
vaults::vaults
1
Amount out below min limit
remove
vaults::vaults
2
Position size error
deposit,remove,reinvest,migrate_liquidity,rebalance,collect_fee,harvest,collect_rewarder,get_position_amounts
vaults::vaults
3
Package version deprecated
checked_package_version
vaults::vaults
4
Token amount overflow
deposit
vaults::vaults
5
Token amount is zero
remove,deposit
vaults::vaults
6
Pool is paused
take_harvest_asset_by_amount
vaults::vaults
7
Invalid coin type
migrate_liquidity
vaults::vaults
8
Rebalance add liquidity error
remove
vaults::vaults
9
Token amount not enough
remove
vaults::vaults
10
Invalid protocol fee rate
update_protocol_fee_rate
vaults::vaults
11
No protocol fee claim permission
check_protocol_fee_claim_role
vaults::vaults
12
No operation manager permission
check_reinvest_role,check_operation_role
vaults::vaults
13
No pool manager permission
check_pool_manager_role
vaults::vaults
14
Treasury cap illegal
create_vault
vaults::vaults
15
Wrong package version
update_package_version
vaults::vaults
16
Quota reached
deposit
vaults::vaults
17
Vault not running
collect_rewarder,harvest,collect_fee,migrate_liquidity,reinvest ,remove,deposit
vaults::vaults
18
Vault not rebalancing
rebalance
vaults::vaults
19
Quota type name error
calculate_updated_quota
vaults::vaults
20
Same coin type
new_pool_key
vaults::vaults
21
Invalid coin type sequence
add_oracle_pool
vaults::vaults
22
Coin pair existed
reinvest_harvest_assets,flash_loan ,update_slippage,remove_oracle_pool
vaults::vaults
23
Coin pair non-existed
flash_loan
vaults::vaults
24
Incorrect flash loan amount
repay_flash_loan
vaults::vaults
25
Incorrect repay
flash_loan
vaults::vaults
26
Oracle pool error
rebalance
vaults::vaults
27
Flashloan count non-zero
rebalance
vaults::vaults
28
Finish rebalance threshold not match
rebalance
vaults::vaults
29
Harvest asset not enough
take_harvest_asset_by_amount
vaults::vaults
30
Invalid vault operation
reinvest_harvest_assets
Last updated