pinpet-sdk 2.1.32 → 2.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pinpet-sdk.cjs.js +99 -94
- package/dist/pinpet-sdk.esm.js +99 -94
- package/dist/pinpet-sdk.js +99 -94
- package/dist/pinpet-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/idl/pinpet.json +99 -94
- package/src/idl/pinpet__a.json +3730 -0
package/dist/pinpet-sdk.esm.js
CHANGED
|
@@ -38426,7 +38426,7 @@ class OrderUtils$2 {
|
|
|
38426
38426
|
|
|
38427
38427
|
var orderUtils = OrderUtils$2;
|
|
38428
38428
|
|
|
38429
|
-
var address = "
|
|
38429
|
+
var address = "CYdRzRacZ5kTc9Ht3U7mFhbsyxG3sZGEzC4cNf2Gjg2W";
|
|
38430
38430
|
var metadata = {
|
|
38431
38431
|
name: "pinpet",
|
|
38432
38432
|
version: "0.1.0",
|
|
@@ -41000,471 +41000,476 @@ var errors = [
|
|
|
41000
41000
|
},
|
|
41001
41001
|
{
|
|
41002
41002
|
code: 6021,
|
|
41003
|
+
name: "CloseShortImpossibleState",
|
|
41004
|
+
msg: "Close short impossible state: current_total should always be greater than remaining_close_reduced_sol_with_fee"
|
|
41005
|
+
},
|
|
41006
|
+
{
|
|
41007
|
+
code: 6022,
|
|
41003
41008
|
name: "FeeSplitCalculationOverflow",
|
|
41004
41009
|
msg: "Fee split calculation overflow"
|
|
41005
41010
|
},
|
|
41006
41011
|
{
|
|
41007
|
-
code:
|
|
41012
|
+
code: 6023,
|
|
41008
41013
|
name: "FeeAccumulationOverflow",
|
|
41009
41014
|
msg: "Fee accumulation overflow"
|
|
41010
41015
|
},
|
|
41011
41016
|
{
|
|
41012
|
-
code:
|
|
41017
|
+
code: 6024,
|
|
41013
41018
|
name: "PartnerFeeAdditionOverflow",
|
|
41014
41019
|
msg: "Partner fee addition overflow"
|
|
41015
41020
|
},
|
|
41016
41021
|
{
|
|
41017
|
-
code:
|
|
41022
|
+
code: 6025,
|
|
41018
41023
|
name: "BaseFeeAdditionOverflow",
|
|
41019
41024
|
msg: "Base fee addition overflow"
|
|
41020
41025
|
},
|
|
41021
41026
|
{
|
|
41022
|
-
code:
|
|
41027
|
+
code: 6026,
|
|
41023
41028
|
name: "PoolFeeDeductionOverflow",
|
|
41024
41029
|
msg: "Pool fee deduction overflow"
|
|
41025
41030
|
},
|
|
41026
41031
|
{
|
|
41027
|
-
code:
|
|
41032
|
+
code: 6027,
|
|
41028
41033
|
name: "FeeRandomDiscountOverflow",
|
|
41029
41034
|
msg: "Fee random discount calculation overflow"
|
|
41030
41035
|
},
|
|
41031
41036
|
{
|
|
41032
|
-
code:
|
|
41037
|
+
code: 6028,
|
|
41033
41038
|
name: "SolReserveAdditionOverflow",
|
|
41034
41039
|
msg: "SOL reserve addition overflow"
|
|
41035
41040
|
},
|
|
41036
41041
|
{
|
|
41037
|
-
code:
|
|
41042
|
+
code: 6029,
|
|
41038
41043
|
name: "SolReserveDeductionOverflow",
|
|
41039
41044
|
msg: "SOL reserve deduction overflow"
|
|
41040
41045
|
},
|
|
41041
41046
|
{
|
|
41042
|
-
code:
|
|
41047
|
+
code: 6030,
|
|
41043
41048
|
name: "TokenReserveAdditionOverflow",
|
|
41044
41049
|
msg: "Token reserve addition overflow"
|
|
41045
41050
|
},
|
|
41046
41051
|
{
|
|
41047
|
-
code:
|
|
41052
|
+
code: 6031,
|
|
41048
41053
|
name: "LamportsAdditionOverflow",
|
|
41049
41054
|
msg: "Lamports addition overflow"
|
|
41050
41055
|
},
|
|
41051
41056
|
{
|
|
41052
|
-
code:
|
|
41057
|
+
code: 6032,
|
|
41053
41058
|
name: "LamportsDeductionOverflow",
|
|
41054
41059
|
msg: "Lamports deduction overflow"
|
|
41055
41060
|
},
|
|
41056
41061
|
{
|
|
41057
|
-
code:
|
|
41062
|
+
code: 6033,
|
|
41058
41063
|
name: "DeadlineCalculationOverflow",
|
|
41059
41064
|
msg: "Deadline calculation overflow"
|
|
41060
41065
|
},
|
|
41061
41066
|
{
|
|
41062
|
-
code:
|
|
41067
|
+
code: 6034,
|
|
41063
41068
|
name: "FeeDiscountFlagOverflow",
|
|
41064
41069
|
msg: "Fee discount flag calculation overflow"
|
|
41065
41070
|
},
|
|
41066
41071
|
{
|
|
41067
|
-
code:
|
|
41072
|
+
code: 6035,
|
|
41068
41073
|
name: "Unauthorized",
|
|
41069
41074
|
msg: "Unauthorized operation"
|
|
41070
41075
|
},
|
|
41071
41076
|
{
|
|
41072
|
-
code:
|
|
41077
|
+
code: 6036,
|
|
41073
41078
|
name: "RequiredParameter",
|
|
41074
41079
|
msg: "All parameters are required during initialization"
|
|
41075
41080
|
},
|
|
41076
41081
|
{
|
|
41077
|
-
code:
|
|
41082
|
+
code: 6037,
|
|
41078
41083
|
name: "CurveCalculationError",
|
|
41079
41084
|
msg: "Curve calculation error"
|
|
41080
41085
|
},
|
|
41081
41086
|
{
|
|
41082
|
-
code:
|
|
41087
|
+
code: 6038,
|
|
41083
41088
|
name: "InitialPriceCalculationError",
|
|
41084
41089
|
msg: "Initial price calculation failed"
|
|
41085
41090
|
},
|
|
41086
41091
|
{
|
|
41087
|
-
code:
|
|
41092
|
+
code: 6039,
|
|
41088
41093
|
name: "BuyReserveRecalculationError",
|
|
41089
41094
|
msg: "Reserve recalculation failed (after buy)"
|
|
41090
41095
|
},
|
|
41091
41096
|
{
|
|
41092
|
-
code:
|
|
41097
|
+
code: 6040,
|
|
41093
41098
|
name: "SellReserveRecalculationError",
|
|
41094
41099
|
msg: "Reserve recalculation failed (after sell)"
|
|
41095
41100
|
},
|
|
41096
41101
|
{
|
|
41097
|
-
code:
|
|
41102
|
+
code: 6041,
|
|
41098
41103
|
name: "TotalAmountWithFeeError",
|
|
41099
41104
|
msg: "Total amount with fee calculation failed"
|
|
41100
41105
|
},
|
|
41101
41106
|
{
|
|
41102
|
-
code:
|
|
41107
|
+
code: 6042,
|
|
41103
41108
|
name: "AmountAfterFeeError",
|
|
41104
41109
|
msg: "Amount after fee calculation failed"
|
|
41105
41110
|
},
|
|
41106
41111
|
{
|
|
41107
|
-
code:
|
|
41112
|
+
code: 6043,
|
|
41108
41113
|
name: "BuyPriceRangeCalculationError",
|
|
41109
41114
|
msg: "Buy price range calculation failed"
|
|
41110
41115
|
},
|
|
41111
41116
|
{
|
|
41112
|
-
code:
|
|
41117
|
+
code: 6044,
|
|
41113
41118
|
name: "SellPriceRangeCalculationError",
|
|
41114
41119
|
msg: "Sell price range calculation failed"
|
|
41115
41120
|
},
|
|
41116
41121
|
{
|
|
41117
|
-
code:
|
|
41122
|
+
code: 6045,
|
|
41118
41123
|
name: "PriceAtStopLossBoundary",
|
|
41119
41124
|
msg: "Price has reached stop-loss boundary, head order must be liquidated first"
|
|
41120
41125
|
},
|
|
41121
41126
|
{
|
|
41122
|
-
code:
|
|
41127
|
+
code: 6046,
|
|
41123
41128
|
name: "RemainingRangeCalculationError",
|
|
41124
41129
|
msg: "Remaining range calculation failed"
|
|
41125
41130
|
},
|
|
41126
41131
|
{
|
|
41127
|
-
code:
|
|
41132
|
+
code: 6047,
|
|
41128
41133
|
name: "FullRangeCalculationError",
|
|
41129
41134
|
msg: "Full range calculation failed"
|
|
41130
41135
|
},
|
|
41131
41136
|
{
|
|
41132
|
-
code:
|
|
41137
|
+
code: 6048,
|
|
41133
41138
|
name: "BuyFromPriceWithTokenNoneError",
|
|
41134
41139
|
msg: "Curve function returned None: buy_from_price_with_token_output"
|
|
41135
41140
|
},
|
|
41136
41141
|
{
|
|
41137
|
-
code:
|
|
41142
|
+
code: 6049,
|
|
41138
41143
|
name: "SellFromPriceWithTokenNoneError",
|
|
41139
41144
|
msg: "Curve function returned None: sell_from_price_with_token_input"
|
|
41140
41145
|
},
|
|
41141
41146
|
{
|
|
41142
|
-
code:
|
|
41147
|
+
code: 6050,
|
|
41143
41148
|
name: "ExceedsMaxSolAmount",
|
|
41144
41149
|
msg: "Required SOL amount exceeds user-set maximum"
|
|
41145
41150
|
},
|
|
41146
41151
|
{
|
|
41147
|
-
code:
|
|
41152
|
+
code: 6051,
|
|
41148
41153
|
name: "InsufficientSolOutput",
|
|
41149
41154
|
msg: "Insufficient SOL output"
|
|
41150
41155
|
},
|
|
41151
41156
|
{
|
|
41152
|
-
code:
|
|
41157
|
+
code: 6052,
|
|
41153
41158
|
name: "InsufficientRepayment",
|
|
41154
41159
|
msg: "Insufficient proceeds to repay loan"
|
|
41155
41160
|
},
|
|
41156
41161
|
{
|
|
41157
|
-
code:
|
|
41162
|
+
code: 6053,
|
|
41158
41163
|
name: "InsufficientBorrowingReserve",
|
|
41159
41164
|
msg: "Insufficient borrowing reserve"
|
|
41160
41165
|
},
|
|
41161
41166
|
{
|
|
41162
|
-
code:
|
|
41167
|
+
code: 6054,
|
|
41163
41168
|
name: "InsufficientTokenSale",
|
|
41164
41169
|
msg: "Insufficient token sale amount"
|
|
41165
41170
|
},
|
|
41166
41171
|
{
|
|
41167
|
-
code:
|
|
41172
|
+
code: 6055,
|
|
41168
41173
|
name: "InsufficientLiquidity",
|
|
41169
41174
|
msg: "Insufficient liquidity in current order"
|
|
41170
41175
|
},
|
|
41171
41176
|
{
|
|
41172
|
-
code:
|
|
41177
|
+
code: 6056,
|
|
41173
41178
|
name: "InsufficientMarketLiquidity",
|
|
41174
41179
|
msg: "Insufficient market liquidity, cannot satisfy trade even after liquidating all stop-loss orders"
|
|
41175
41180
|
},
|
|
41176
41181
|
{
|
|
41177
|
-
code:
|
|
41182
|
+
code: 6057,
|
|
41178
41183
|
name: "TokenAmountDifferenceOutOfRange",
|
|
41179
41184
|
msg: "Token amount difference exceeds valid range in margin trade"
|
|
41180
41185
|
},
|
|
41181
41186
|
{
|
|
41182
|
-
code:
|
|
41187
|
+
code: 6058,
|
|
41183
41188
|
name: "BorrowAmountMismatch",
|
|
41184
41189
|
msg: "Borrow amount mismatch with locked tokens"
|
|
41185
41190
|
},
|
|
41186
41191
|
{
|
|
41187
|
-
code:
|
|
41192
|
+
code: 6059,
|
|
41188
41193
|
name: "CloseFeeCalculationError",
|
|
41189
41194
|
msg: "Close fee calculation error"
|
|
41190
41195
|
},
|
|
41191
41196
|
{
|
|
41192
|
-
code:
|
|
41197
|
+
code: 6060,
|
|
41193
41198
|
name: "InsufficientMargin",
|
|
41194
41199
|
msg: "Insufficient margin"
|
|
41195
41200
|
},
|
|
41196
41201
|
{
|
|
41197
|
-
code:
|
|
41202
|
+
code: 6061,
|
|
41198
41203
|
name: "InsufficientMinimumMargin",
|
|
41199
41204
|
msg: "Margin below minimum requirement"
|
|
41200
41205
|
},
|
|
41201
41206
|
{
|
|
41202
|
-
code:
|
|
41207
|
+
code: 6062,
|
|
41203
41208
|
name: "InvalidAccountOwner",
|
|
41204
41209
|
msg: "Invalid account owner"
|
|
41205
41210
|
},
|
|
41206
41211
|
{
|
|
41207
|
-
code:
|
|
41212
|
+
code: 6063,
|
|
41208
41213
|
name: "SellAmountExceedsOrderAmount",
|
|
41209
41214
|
msg: "Sell amount exceeds order's token holdings"
|
|
41210
41215
|
},
|
|
41211
41216
|
{
|
|
41212
|
-
code:
|
|
41217
|
+
code: 6064,
|
|
41213
41218
|
name: "OrderNotExpiredMustCloseByOwner",
|
|
41214
41219
|
msg: "Non-expired order must be closed by owner"
|
|
41215
41220
|
},
|
|
41216
41221
|
{
|
|
41217
|
-
code:
|
|
41222
|
+
code: 6065,
|
|
41218
41223
|
name: "SettlementAddressMustBeOwnerAddress",
|
|
41219
41224
|
msg: "Settlement address must be owner address"
|
|
41220
41225
|
},
|
|
41221
41226
|
{
|
|
41222
|
-
code:
|
|
41227
|
+
code: 6066,
|
|
41223
41228
|
name: "BuyAmountExceedsOrderAmount",
|
|
41224
41229
|
msg: "Buy amount exceeds order's token holdings"
|
|
41225
41230
|
},
|
|
41226
41231
|
{
|
|
41227
|
-
code:
|
|
41232
|
+
code: 6067,
|
|
41228
41233
|
name: "InsufficientTradeAmount",
|
|
41229
41234
|
msg: "Trade amount below minimum requirement"
|
|
41230
41235
|
},
|
|
41231
41236
|
{
|
|
41232
|
-
code:
|
|
41237
|
+
code: 6068,
|
|
41233
41238
|
name: "SolAmountTooLarge",
|
|
41234
41239
|
msg: "SOL amount exceeds maximum limit (10000000 SOL per transaction)"
|
|
41235
41240
|
},
|
|
41236
41241
|
{
|
|
41237
|
-
code:
|
|
41242
|
+
code: 6069,
|
|
41238
41243
|
name: "RemainingTokenAmountTooSmall",
|
|
41239
41244
|
msg: "Remaining token amount below minimum trade requirement"
|
|
41240
41245
|
},
|
|
41241
41246
|
{
|
|
41242
|
-
code:
|
|
41247
|
+
code: 6070,
|
|
41243
41248
|
name: "TradeCooldownNotExpired",
|
|
41244
41249
|
msg: "Trade cooldown period not expired, please try again later"
|
|
41245
41250
|
},
|
|
41246
41251
|
{
|
|
41247
|
-
code:
|
|
41252
|
+
code: 6071,
|
|
41248
41253
|
name: "ExceedApprovalAmount",
|
|
41249
41254
|
msg: "Sell amount exceeds approved amount, please call approval function first"
|
|
41250
41255
|
},
|
|
41251
41256
|
{
|
|
41252
|
-
code:
|
|
41257
|
+
code: 6072,
|
|
41253
41258
|
name: "CooldownNotInitialized",
|
|
41254
41259
|
msg: "Sell trade requires calling approval or buy function first to initialize cooldown PDA"
|
|
41255
41260
|
},
|
|
41256
41261
|
{
|
|
41257
|
-
code:
|
|
41262
|
+
code: 6073,
|
|
41258
41263
|
name: "CannotCloseCooldownWithBalance",
|
|
41259
41264
|
msg: "Cannot close cooldown PDA with non-zero token balance"
|
|
41260
41265
|
},
|
|
41261
41266
|
{
|
|
41262
|
-
code:
|
|
41267
|
+
code: 6074,
|
|
41263
41268
|
name: "PriceCalculationError",
|
|
41264
41269
|
msg: "Price calculation error"
|
|
41265
41270
|
},
|
|
41266
41271
|
{
|
|
41267
|
-
code:
|
|
41272
|
+
code: 6075,
|
|
41268
41273
|
name: "InvalidPartnerFeeRecipientAccount",
|
|
41269
41274
|
msg: "Invalid partner fee recipient account"
|
|
41270
41275
|
},
|
|
41271
41276
|
{
|
|
41272
|
-
code:
|
|
41277
|
+
code: 6076,
|
|
41273
41278
|
name: "InvalidBaseFeeRecipientAccount",
|
|
41274
41279
|
msg: "Invalid base fee recipient account"
|
|
41275
41280
|
},
|
|
41276
41281
|
{
|
|
41277
|
-
code:
|
|
41282
|
+
code: 6077,
|
|
41278
41283
|
name: "InvalidOrderbookAddress",
|
|
41279
41284
|
msg: "Orderbook address does not match curve account orderbook"
|
|
41280
41285
|
},
|
|
41281
41286
|
{
|
|
41282
|
-
code:
|
|
41287
|
+
code: 6078,
|
|
41283
41288
|
name: "InvalidFeePercentage",
|
|
41284
41289
|
msg: "Fee percentage must be between 0-100"
|
|
41285
41290
|
},
|
|
41286
41291
|
{
|
|
41287
|
-
code:
|
|
41292
|
+
code: 6079,
|
|
41288
41293
|
name: "InvalidFeeRate",
|
|
41289
41294
|
msg: "Fee rate exceeds maximum limit (10%)"
|
|
41290
41295
|
},
|
|
41291
41296
|
{
|
|
41292
|
-
code:
|
|
41297
|
+
code: 6080,
|
|
41293
41298
|
name: "InvalidCustomFeeRate",
|
|
41294
41299
|
msg: "Custom fee rate must be between 1000 (1%) and 5000 (5%)"
|
|
41295
41300
|
},
|
|
41296
41301
|
{
|
|
41297
|
-
code:
|
|
41302
|
+
code: 6081,
|
|
41298
41303
|
name: "InvalidBorrowDuration",
|
|
41299
41304
|
msg: "Borrow duration out of valid range (3-30 days)"
|
|
41300
41305
|
},
|
|
41301
41306
|
{
|
|
41302
|
-
code:
|
|
41307
|
+
code: 6082,
|
|
41303
41308
|
name: "InvalidStopLossPrice",
|
|
41304
41309
|
msg: "Stop loss price does not meet minimum interval requirement"
|
|
41305
41310
|
},
|
|
41306
41311
|
{
|
|
41307
|
-
code:
|
|
41312
|
+
code: 6083,
|
|
41308
41313
|
name: "NoProfitableFunds",
|
|
41309
41314
|
msg: "No profitable funds to transfer"
|
|
41310
41315
|
},
|
|
41311
41316
|
{
|
|
41312
|
-
code:
|
|
41317
|
+
code: 6084,
|
|
41313
41318
|
name: "InsufficientPoolFunds",
|
|
41314
41319
|
msg: "Insufficient pool funds"
|
|
41315
41320
|
},
|
|
41316
41321
|
{
|
|
41317
|
-
code:
|
|
41322
|
+
code: 6085,
|
|
41318
41323
|
name: "InsufficientPoolBalance",
|
|
41319
41324
|
msg: "Pool SOL account balance would fall below minimum required balance"
|
|
41320
41325
|
},
|
|
41321
41326
|
{
|
|
41322
|
-
code:
|
|
41327
|
+
code: 6086,
|
|
41323
41328
|
name: "OrderBookManagerOverflow",
|
|
41324
41329
|
msg: "Math operation overflow"
|
|
41325
41330
|
},
|
|
41326
41331
|
{
|
|
41327
|
-
code:
|
|
41332
|
+
code: 6087,
|
|
41328
41333
|
name: "OrderBookManagerInvalidSlotIndex",
|
|
41329
41334
|
msg: "Invalid slot index"
|
|
41330
41335
|
},
|
|
41331
41336
|
{
|
|
41332
|
-
code:
|
|
41337
|
+
code: 6088,
|
|
41333
41338
|
name: "OrderBookManagerInvalidAccountData",
|
|
41334
41339
|
msg: "Invalid account data"
|
|
41335
41340
|
},
|
|
41336
41341
|
{
|
|
41337
|
-
code:
|
|
41342
|
+
code: 6089,
|
|
41338
41343
|
name: "OrderBookManagerExceedsMaxCapacity",
|
|
41339
41344
|
msg: "New capacity exceeds maximum limit"
|
|
41340
41345
|
},
|
|
41341
41346
|
{
|
|
41342
|
-
code:
|
|
41347
|
+
code: 6090,
|
|
41343
41348
|
name: "OrderBookManagerExceedsAccountSizeLimit",
|
|
41344
41349
|
msg: "Account size exceeds 10MB limit"
|
|
41345
41350
|
},
|
|
41346
41351
|
{
|
|
41347
|
-
code:
|
|
41352
|
+
code: 6091,
|
|
41348
41353
|
name: "OrderBookManagerOrderIdMismatch",
|
|
41349
41354
|
msg: "Order ID mismatch"
|
|
41350
41355
|
},
|
|
41351
41356
|
{
|
|
41352
|
-
code:
|
|
41357
|
+
code: 6092,
|
|
41353
41358
|
name: "OrderBookManagerEmptyOrderBook",
|
|
41354
41359
|
msg: "Order book is empty"
|
|
41355
41360
|
},
|
|
41356
41361
|
{
|
|
41357
|
-
code:
|
|
41362
|
+
code: 6093,
|
|
41358
41363
|
name: "OrderBookManagerAccountNotWritable",
|
|
41359
41364
|
msg: "Account is not writable"
|
|
41360
41365
|
},
|
|
41361
41366
|
{
|
|
41362
|
-
code:
|
|
41367
|
+
code: 6094,
|
|
41363
41368
|
name: "OrderBookManagerNotRentExempt",
|
|
41364
41369
|
msg: "Account not rent-exempt"
|
|
41365
41370
|
},
|
|
41366
41371
|
{
|
|
41367
|
-
code:
|
|
41372
|
+
code: 6095,
|
|
41368
41373
|
name: "OrderBookManagerInvalidRentBalance",
|
|
41369
41374
|
msg: "Invalid rent balance"
|
|
41370
41375
|
},
|
|
41371
41376
|
{
|
|
41372
|
-
code:
|
|
41377
|
+
code: 6096,
|
|
41373
41378
|
name: "OrderBookManagerInsufficientFunds",
|
|
41374
41379
|
msg: "Insufficient funds"
|
|
41375
41380
|
},
|
|
41376
41381
|
{
|
|
41377
|
-
code:
|
|
41382
|
+
code: 6097,
|
|
41378
41383
|
name: "OrderBookManagerInvalidAccountOwner",
|
|
41379
41384
|
msg: "OrderBook account owner mismatch"
|
|
41380
41385
|
},
|
|
41381
41386
|
{
|
|
41382
|
-
code:
|
|
41387
|
+
code: 6098,
|
|
41383
41388
|
name: "OrderBookManagerDataOutOfBounds",
|
|
41384
41389
|
msg: "Data access out of bounds"
|
|
41385
41390
|
},
|
|
41386
41391
|
{
|
|
41387
|
-
code:
|
|
41392
|
+
code: 6099,
|
|
41388
41393
|
name: "NoValidInsertPosition",
|
|
41389
41394
|
msg: "Cannot find valid insert position, all candidates failed due to price range overlap"
|
|
41390
41395
|
},
|
|
41391
41396
|
{
|
|
41392
|
-
code:
|
|
41397
|
+
code: 6100,
|
|
41393
41398
|
name: "EmptyCloseInsertIndices",
|
|
41394
41399
|
msg: "close_insert_indices array cannot be empty"
|
|
41395
41400
|
},
|
|
41396
41401
|
{
|
|
41397
|
-
code:
|
|
41402
|
+
code: 6101,
|
|
41398
41403
|
name: "TooManyCloseInsertIndices",
|
|
41399
41404
|
msg: "close_insert_indices array cannot exceed 20 elements"
|
|
41400
41405
|
},
|
|
41401
41406
|
{
|
|
41402
|
-
code:
|
|
41407
|
+
code: 6102,
|
|
41403
41408
|
name: "CloseOrderNotFound",
|
|
41404
41409
|
msg: "Specified close order not found"
|
|
41405
41410
|
},
|
|
41406
41411
|
{
|
|
41407
|
-
code:
|
|
41412
|
+
code: 6103,
|
|
41408
41413
|
name: "LinkedListDeleteCountMismatch",
|
|
41409
41414
|
msg: "Linked list delete count mismatch: count inconsistent before/after deletion"
|
|
41410
41415
|
},
|
|
41411
41416
|
{
|
|
41412
|
-
code:
|
|
41417
|
+
code: 6104,
|
|
41413
41418
|
name: "NameTooLong",
|
|
41414
41419
|
msg: "Token name too long, max 32 bytes"
|
|
41415
41420
|
},
|
|
41416
41421
|
{
|
|
41417
|
-
code:
|
|
41422
|
+
code: 6105,
|
|
41418
41423
|
name: "NameEmpty",
|
|
41419
41424
|
msg: "Token name cannot be empty"
|
|
41420
41425
|
},
|
|
41421
41426
|
{
|
|
41422
|
-
code:
|
|
41427
|
+
code: 6106,
|
|
41423
41428
|
name: "SymbolTooLong",
|
|
41424
41429
|
msg: "Token symbol too long, max 10 bytes"
|
|
41425
41430
|
},
|
|
41426
41431
|
{
|
|
41427
|
-
code:
|
|
41432
|
+
code: 6107,
|
|
41428
41433
|
name: "SymbolEmpty",
|
|
41429
41434
|
msg: "Token symbol cannot be empty"
|
|
41430
41435
|
},
|
|
41431
41436
|
{
|
|
41432
|
-
code:
|
|
41437
|
+
code: 6108,
|
|
41433
41438
|
name: "UriTooLong",
|
|
41434
41439
|
msg: "URI too long, max 200 bytes"
|
|
41435
41440
|
},
|
|
41436
41441
|
{
|
|
41437
|
-
code:
|
|
41442
|
+
code: 6109,
|
|
41438
41443
|
name: "UriEmpty",
|
|
41439
41444
|
msg: "URI cannot be empty"
|
|
41440
41445
|
},
|
|
41441
41446
|
{
|
|
41442
|
-
code:
|
|
41447
|
+
code: 6110,
|
|
41443
41448
|
name: "IncompleteAdvancedPoolParams",
|
|
41444
41449
|
msg: "Incomplete advanced pool parameters: custom_lp_sol, custom_lp_token, custom_borrow_ratio, custom_borrow_duration must be provided together"
|
|
41445
41450
|
},
|
|
41446
41451
|
{
|
|
41447
|
-
code:
|
|
41452
|
+
code: 6111,
|
|
41448
41453
|
name: "InvalidInitialVirtualSol",
|
|
41449
41454
|
msg: "Initial virtual SOL out of valid range"
|
|
41450
41455
|
},
|
|
41451
41456
|
{
|
|
41452
|
-
code:
|
|
41457
|
+
code: 6112,
|
|
41453
41458
|
name: "InvalidInitialVirtualToken",
|
|
41454
41459
|
msg: "Initial virtual Token out of valid range"
|
|
41455
41460
|
},
|
|
41456
41461
|
{
|
|
41457
|
-
code:
|
|
41462
|
+
code: 6113,
|
|
41458
41463
|
name: "InvalidBorrowPoolRatio",
|
|
41459
41464
|
msg: "Borrow pool ratio out of valid range"
|
|
41460
41465
|
},
|
|
41461
41466
|
{
|
|
41462
|
-
code:
|
|
41467
|
+
code: 6114,
|
|
41463
41468
|
name: "BorrowTokenCalculationOverflow",
|
|
41464
41469
|
msg: "Borrow pool token amount calculation overflow"
|
|
41465
41470
|
},
|
|
41466
41471
|
{
|
|
41467
|
-
code:
|
|
41472
|
+
code: 6115,
|
|
41468
41473
|
name: "BorrowTokenAmountZero",
|
|
41469
41474
|
msg: "Borrow pool token amount cannot be zero"
|
|
41470
41475
|
}
|