@@ -7,10 +7,10 @@ import (
77var (
88 ErrOrderInvalid = sdkerrors .Register (ModuleName , 1 , "failed to validate order" )
99 ErrOrderNotFound = sdkerrors .Register (ModuleName , 2 , "no active order found for the hash" )
10- ErrPairSuspended = sdkerrors .Register (ModuleName , 3 , "trade pair suspended" )
11- ErrPairNotFound = sdkerrors .Register (ModuleName , 4 , "trade pair not found" )
12- ErrSpotMarketExists = sdkerrors .Register (ModuleName , 5 , "trade pair exists" )
13- ErrPairMismatch = sdkerrors .Register (ModuleName , 6 , "trade pair mismatch" )
10+ ErrSpotMarketSuspended = sdkerrors .Register (ModuleName , 3 , "spot market suspended" )
11+ ErrSpotMarketNotFound = sdkerrors .Register (ModuleName , 4 , "spot market not found" )
12+ ErrSpotMarketExists = sdkerrors .Register (ModuleName , 5 , "spot market exists" )
13+ ErrSpotMarketMismatch = sdkerrors .Register (ModuleName , 6 , "spot market mismatch" )
1414 ErrBadField = sdkerrors .Register (ModuleName , 7 , "struct field error" )
1515 ErrMarketNotFound = sdkerrors .Register (ModuleName , 8 , "derivative market not found" )
1616 ErrMarketInvalid = sdkerrors .Register (ModuleName , 9 , "failed to validate derivative market" )
2121 ErrOverLeveragedOrder = sdkerrors .Register (ModuleName , 14 , "cannot add overlevered order" )
2222 ErrSubaccountNotFound = sdkerrors .Register (ModuleName , 15 , "subaccount not found" )
2323 ErrOrderAlreadyExists = sdkerrors .Register (ModuleName , 16 , "order already exists" )
24- ErrInsufficientMargin = sdkerrors .Register (ModuleName , 17 , "subaccount has insufficient margin" )
24+ ErrInsufficientDeposit = sdkerrors .Register (ModuleName , 17 , "subaccount has insufficient margin" )
2525 ErrMarketExpired = sdkerrors .Register (ModuleName , 18 , "market has already expired" )
2626 ErrOrderExpired = sdkerrors .Register (ModuleName , 19 , "order has already expired" )
2727 ErrInsufficientOrderQuantity = sdkerrors .Register (ModuleName , 20 , "order quantity invalid" )
3434 ErrReplayTecTransaction = sdkerrors .Register (ModuleName , 27 , "cannot replay TEC transaction" )
3535 ErrOrderAlreadyArchived = sdkerrors .Register (ModuleName , 28 , "order already in archive store" )
3636 ErrAddressNotContract = sdkerrors .Register (ModuleName , 29 , "address is not a smart contract" )
37- ErrExchangeAlreadySet = sdkerrors .Register (ModuleName , 30 , "Exchange address already set" )
38- ErrBadExchangeAddress = sdkerrors .Register (ModuleName , 31 , "Bad exchange address" )
37+ ErrOrderIDInvalid = sdkerrors .Register (ModuleName , 30 , "order id is not valid" )
38+ ErrBadSubaccountID = sdkerrors .Register (ModuleName , 31 , "subaccount id is not valid" )
39+ ErrInvalidTicker = sdkerrors .Register (ModuleName , 32 , "invalid ticker" )
40+ ErrInvalidBaseDenom = sdkerrors .Register (ModuleName , 33 , "invalid base denom" )
41+ ErrInvalidQuoteDenom = sdkerrors .Register (ModuleName , 34 , "invalid quote denom" )
42+ ErrOrderDoesntExist = sdkerrors .Register (ModuleName , 35 , "order doesnt exist" )
43+
44+ ErrDepositDoesntExist = sdkerrors .Register (ModuleName , 37 , "deposit doesnt exist" )
45+ ErrOrderbookDoesntExist = sdkerrors .Register (ModuleName , 38 , "spot limit orderbook doesnt exist" )
46+ ErrOrderbookFillInvalid = sdkerrors .Register (ModuleName , 39 , "spot limit orderbook fill invalid" )
47+ ErrPerpetualMarketExists = sdkerrors .Register (ModuleName , 40 , "perpetual market exists" )
48+ ErrExpiryFuturesMarketExists = sdkerrors .Register (ModuleName , 41 , "expiry futures market exists" )
49+ ErrExpiryFuturesMarketExpired = sdkerrors .Register (ModuleName , 42 , "expiry futures market expired" )
50+ ErrNoLiquidity = sdkerrors .Register (ModuleName , 43 , "no liquidity on the orderbook!" )
51+ ErrSlippageExceedsWorstPrice = sdkerrors .Register (ModuleName , 44 , "Orderbook liquidity cannot satisfy current worst price" )
52+ ErrInsufficientOrderMargin = sdkerrors .Register (ModuleName , 45 , "Order has insufficient margin" )
53+ ErrDerivativeMarketNotFound = sdkerrors .Register (ModuleName , 46 , "Derivative market not found" )
3954)
0 commit comments