Contract Error Codes

the Cetus smart contract may return the following error codes:

Module
Error Code
Description
Contract Methods

lock_coin

0

The lock time must be greater than the current time

lock_coin

lock_coin

1

The lock period has not ended

unlock_coin

locking

1

Insufficient XCetus balance

redeem_lock

locking

2

Locking period for XCetus is out of allowed range

redeem_lock

locking

3

Invalid redeemable XCetus amount

redeem_lock

locking

4

veNFT does not match the associated LockedCoin

cancel_redeem_lock,

redeem

locking

5

LockCoin has expired; locking has ended

cancel_redeem_lock

locking

7

Unauthorized treasury manager

redeem_treasury

locking

8

The version of the contract has been deprecated

The vast majority of methods

xcetus

1

XCetus balance is not zero

burn_venft

xcetus

5

The address already has a VeNFT

burn_lp

xcetus

6

XCetus in unlocking process is not zero

request_transfer_venft_by_admin, approve_transfer_venft, mint_venft

xcetus

7

VeNFT does not exist

approve_transfer_venft

xcetus

8

Transfer request already exists

request_transfer_venft_by_admin

xcetus

9

Transfer request does not exist

approve_transfer_venft, cancel_transfer_venft_request_by_admin

xcetus

10

TransferVeNFTRequest does not match the VeNFT

approve_transfer_venft

xcetus

11

The destination address is inconsistent with the one in TransferVeNFTRequest

approve_transfer_venft

Last updated