pinpet-sdk 2.1.16 → 2.1.17
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 +94 -99
- package/dist/pinpet-sdk.esm.js +94 -99
- package/dist/pinpet-sdk.js +94 -99
- package/dist/pinpet-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/idl/pinpet.json +94 -99
- package/src/idl/pinpet copy.json +0 -3730
package/dist/pinpet-sdk.cjs.js
CHANGED
|
@@ -49633,7 +49633,7 @@ class OrderUtils$2 {
|
|
|
49633
49633
|
|
|
49634
49634
|
var orderUtils = OrderUtils$2;
|
|
49635
49635
|
|
|
49636
|
-
var address = "
|
|
49636
|
+
var address = "F2FzigE1Z374iDvreiM6hZQe6oGXgomJfv8PyybvUXye";
|
|
49637
49637
|
var metadata = {
|
|
49638
49638
|
name: "pinpet",
|
|
49639
49639
|
version: "0.1.0",
|
|
@@ -52207,476 +52207,471 @@ var errors = [
|
|
|
52207
52207
|
},
|
|
52208
52208
|
{
|
|
52209
52209
|
code: 6021,
|
|
52210
|
-
name: "CloseShortImpossibleState",
|
|
52211
|
-
msg: "Close short impossible state: current_total should always be greater than remaining_close_reduced_sol_with_fee"
|
|
52212
|
-
},
|
|
52213
|
-
{
|
|
52214
|
-
code: 6022,
|
|
52215
52210
|
name: "FeeSplitCalculationOverflow",
|
|
52216
52211
|
msg: "Fee split calculation overflow"
|
|
52217
52212
|
},
|
|
52218
52213
|
{
|
|
52219
|
-
code:
|
|
52214
|
+
code: 6022,
|
|
52220
52215
|
name: "FeeAccumulationOverflow",
|
|
52221
52216
|
msg: "Fee accumulation overflow"
|
|
52222
52217
|
},
|
|
52223
52218
|
{
|
|
52224
|
-
code:
|
|
52219
|
+
code: 6023,
|
|
52225
52220
|
name: "PartnerFeeAdditionOverflow",
|
|
52226
52221
|
msg: "Partner fee addition overflow"
|
|
52227
52222
|
},
|
|
52228
52223
|
{
|
|
52229
|
-
code:
|
|
52224
|
+
code: 6024,
|
|
52230
52225
|
name: "BaseFeeAdditionOverflow",
|
|
52231
52226
|
msg: "Base fee addition overflow"
|
|
52232
52227
|
},
|
|
52233
52228
|
{
|
|
52234
|
-
code:
|
|
52229
|
+
code: 6025,
|
|
52235
52230
|
name: "PoolFeeDeductionOverflow",
|
|
52236
52231
|
msg: "Pool fee deduction overflow"
|
|
52237
52232
|
},
|
|
52238
52233
|
{
|
|
52239
|
-
code:
|
|
52234
|
+
code: 6026,
|
|
52240
52235
|
name: "FeeRandomDiscountOverflow",
|
|
52241
52236
|
msg: "Fee random discount calculation overflow"
|
|
52242
52237
|
},
|
|
52243
52238
|
{
|
|
52244
|
-
code:
|
|
52239
|
+
code: 6027,
|
|
52245
52240
|
name: "SolReserveAdditionOverflow",
|
|
52246
52241
|
msg: "SOL reserve addition overflow"
|
|
52247
52242
|
},
|
|
52248
52243
|
{
|
|
52249
|
-
code:
|
|
52244
|
+
code: 6028,
|
|
52250
52245
|
name: "SolReserveDeductionOverflow",
|
|
52251
52246
|
msg: "SOL reserve deduction overflow"
|
|
52252
52247
|
},
|
|
52253
52248
|
{
|
|
52254
|
-
code:
|
|
52249
|
+
code: 6029,
|
|
52255
52250
|
name: "TokenReserveAdditionOverflow",
|
|
52256
52251
|
msg: "Token reserve addition overflow"
|
|
52257
52252
|
},
|
|
52258
52253
|
{
|
|
52259
|
-
code:
|
|
52254
|
+
code: 6030,
|
|
52260
52255
|
name: "LamportsAdditionOverflow",
|
|
52261
52256
|
msg: "Lamports addition overflow"
|
|
52262
52257
|
},
|
|
52263
52258
|
{
|
|
52264
|
-
code:
|
|
52259
|
+
code: 6031,
|
|
52265
52260
|
name: "LamportsDeductionOverflow",
|
|
52266
52261
|
msg: "Lamports deduction overflow"
|
|
52267
52262
|
},
|
|
52268
52263
|
{
|
|
52269
|
-
code:
|
|
52264
|
+
code: 6032,
|
|
52270
52265
|
name: "DeadlineCalculationOverflow",
|
|
52271
52266
|
msg: "Deadline calculation overflow"
|
|
52272
52267
|
},
|
|
52273
52268
|
{
|
|
52274
|
-
code:
|
|
52269
|
+
code: 6033,
|
|
52275
52270
|
name: "FeeDiscountFlagOverflow",
|
|
52276
52271
|
msg: "Fee discount flag calculation overflow"
|
|
52277
52272
|
},
|
|
52278
52273
|
{
|
|
52279
|
-
code:
|
|
52274
|
+
code: 6034,
|
|
52280
52275
|
name: "Unauthorized",
|
|
52281
52276
|
msg: "Unauthorized operation"
|
|
52282
52277
|
},
|
|
52283
52278
|
{
|
|
52284
|
-
code:
|
|
52279
|
+
code: 6035,
|
|
52285
52280
|
name: "RequiredParameter",
|
|
52286
52281
|
msg: "All parameters are required during initialization"
|
|
52287
52282
|
},
|
|
52288
52283
|
{
|
|
52289
|
-
code:
|
|
52284
|
+
code: 6036,
|
|
52290
52285
|
name: "CurveCalculationError",
|
|
52291
52286
|
msg: "Curve calculation error"
|
|
52292
52287
|
},
|
|
52293
52288
|
{
|
|
52294
|
-
code:
|
|
52289
|
+
code: 6037,
|
|
52295
52290
|
name: "InitialPriceCalculationError",
|
|
52296
52291
|
msg: "Initial price calculation failed"
|
|
52297
52292
|
},
|
|
52298
52293
|
{
|
|
52299
|
-
code:
|
|
52294
|
+
code: 6038,
|
|
52300
52295
|
name: "BuyReserveRecalculationError",
|
|
52301
52296
|
msg: "Reserve recalculation failed (after buy)"
|
|
52302
52297
|
},
|
|
52303
52298
|
{
|
|
52304
|
-
code:
|
|
52299
|
+
code: 6039,
|
|
52305
52300
|
name: "SellReserveRecalculationError",
|
|
52306
52301
|
msg: "Reserve recalculation failed (after sell)"
|
|
52307
52302
|
},
|
|
52308
52303
|
{
|
|
52309
|
-
code:
|
|
52304
|
+
code: 6040,
|
|
52310
52305
|
name: "TotalAmountWithFeeError",
|
|
52311
52306
|
msg: "Total amount with fee calculation failed"
|
|
52312
52307
|
},
|
|
52313
52308
|
{
|
|
52314
|
-
code:
|
|
52309
|
+
code: 6041,
|
|
52315
52310
|
name: "AmountAfterFeeError",
|
|
52316
52311
|
msg: "Amount after fee calculation failed"
|
|
52317
52312
|
},
|
|
52318
52313
|
{
|
|
52319
|
-
code:
|
|
52314
|
+
code: 6042,
|
|
52320
52315
|
name: "BuyPriceRangeCalculationError",
|
|
52321
52316
|
msg: "Buy price range calculation failed"
|
|
52322
52317
|
},
|
|
52323
52318
|
{
|
|
52324
|
-
code:
|
|
52319
|
+
code: 6043,
|
|
52325
52320
|
name: "SellPriceRangeCalculationError",
|
|
52326
52321
|
msg: "Sell price range calculation failed"
|
|
52327
52322
|
},
|
|
52328
52323
|
{
|
|
52329
|
-
code:
|
|
52324
|
+
code: 6044,
|
|
52330
52325
|
name: "PriceAtStopLossBoundary",
|
|
52331
52326
|
msg: "Price has reached stop-loss boundary, head order must be liquidated first"
|
|
52332
52327
|
},
|
|
52333
52328
|
{
|
|
52334
|
-
code:
|
|
52329
|
+
code: 6045,
|
|
52335
52330
|
name: "RemainingRangeCalculationError",
|
|
52336
52331
|
msg: "Remaining range calculation failed"
|
|
52337
52332
|
},
|
|
52338
52333
|
{
|
|
52339
|
-
code:
|
|
52334
|
+
code: 6046,
|
|
52340
52335
|
name: "FullRangeCalculationError",
|
|
52341
52336
|
msg: "Full range calculation failed"
|
|
52342
52337
|
},
|
|
52343
52338
|
{
|
|
52344
|
-
code:
|
|
52339
|
+
code: 6047,
|
|
52345
52340
|
name: "BuyFromPriceWithTokenNoneError",
|
|
52346
52341
|
msg: "Curve function returned None: buy_from_price_with_token_output"
|
|
52347
52342
|
},
|
|
52348
52343
|
{
|
|
52349
|
-
code:
|
|
52344
|
+
code: 6048,
|
|
52350
52345
|
name: "SellFromPriceWithTokenNoneError",
|
|
52351
52346
|
msg: "Curve function returned None: sell_from_price_with_token_input"
|
|
52352
52347
|
},
|
|
52353
52348
|
{
|
|
52354
|
-
code:
|
|
52349
|
+
code: 6049,
|
|
52355
52350
|
name: "ExceedsMaxSolAmount",
|
|
52356
52351
|
msg: "Required SOL amount exceeds user-set maximum"
|
|
52357
52352
|
},
|
|
52358
52353
|
{
|
|
52359
|
-
code:
|
|
52354
|
+
code: 6050,
|
|
52360
52355
|
name: "InsufficientSolOutput",
|
|
52361
52356
|
msg: "Insufficient SOL output"
|
|
52362
52357
|
},
|
|
52363
52358
|
{
|
|
52364
|
-
code:
|
|
52359
|
+
code: 6051,
|
|
52365
52360
|
name: "InsufficientRepayment",
|
|
52366
52361
|
msg: "Insufficient proceeds to repay loan"
|
|
52367
52362
|
},
|
|
52368
52363
|
{
|
|
52369
|
-
code:
|
|
52364
|
+
code: 6052,
|
|
52370
52365
|
name: "InsufficientBorrowingReserve",
|
|
52371
52366
|
msg: "Insufficient borrowing reserve"
|
|
52372
52367
|
},
|
|
52373
52368
|
{
|
|
52374
|
-
code:
|
|
52369
|
+
code: 6053,
|
|
52375
52370
|
name: "InsufficientTokenSale",
|
|
52376
52371
|
msg: "Insufficient token sale amount"
|
|
52377
52372
|
},
|
|
52378
52373
|
{
|
|
52379
|
-
code:
|
|
52374
|
+
code: 6054,
|
|
52380
52375
|
name: "InsufficientLiquidity",
|
|
52381
52376
|
msg: "Insufficient liquidity in current order"
|
|
52382
52377
|
},
|
|
52383
52378
|
{
|
|
52384
|
-
code:
|
|
52379
|
+
code: 6055,
|
|
52385
52380
|
name: "InsufficientMarketLiquidity",
|
|
52386
52381
|
msg: "Insufficient market liquidity, cannot satisfy trade even after liquidating all stop-loss orders"
|
|
52387
52382
|
},
|
|
52388
52383
|
{
|
|
52389
|
-
code:
|
|
52384
|
+
code: 6056,
|
|
52390
52385
|
name: "TokenAmountDifferenceOutOfRange",
|
|
52391
52386
|
msg: "Token amount difference exceeds valid range in margin trade"
|
|
52392
52387
|
},
|
|
52393
52388
|
{
|
|
52394
|
-
code:
|
|
52389
|
+
code: 6057,
|
|
52395
52390
|
name: "BorrowAmountMismatch",
|
|
52396
52391
|
msg: "Borrow amount mismatch with locked tokens"
|
|
52397
52392
|
},
|
|
52398
52393
|
{
|
|
52399
|
-
code:
|
|
52394
|
+
code: 6058,
|
|
52400
52395
|
name: "CloseFeeCalculationError",
|
|
52401
52396
|
msg: "Close fee calculation error"
|
|
52402
52397
|
},
|
|
52403
52398
|
{
|
|
52404
|
-
code:
|
|
52399
|
+
code: 6059,
|
|
52405
52400
|
name: "InsufficientMargin",
|
|
52406
52401
|
msg: "Insufficient margin"
|
|
52407
52402
|
},
|
|
52408
52403
|
{
|
|
52409
|
-
code:
|
|
52404
|
+
code: 6060,
|
|
52410
52405
|
name: "InsufficientMinimumMargin",
|
|
52411
52406
|
msg: "Margin below minimum requirement"
|
|
52412
52407
|
},
|
|
52413
52408
|
{
|
|
52414
|
-
code:
|
|
52409
|
+
code: 6061,
|
|
52415
52410
|
name: "InvalidAccountOwner",
|
|
52416
52411
|
msg: "Invalid account owner"
|
|
52417
52412
|
},
|
|
52418
52413
|
{
|
|
52419
|
-
code:
|
|
52414
|
+
code: 6062,
|
|
52420
52415
|
name: "SellAmountExceedsOrderAmount",
|
|
52421
52416
|
msg: "Sell amount exceeds order's token holdings"
|
|
52422
52417
|
},
|
|
52423
52418
|
{
|
|
52424
|
-
code:
|
|
52419
|
+
code: 6063,
|
|
52425
52420
|
name: "OrderNotExpiredMustCloseByOwner",
|
|
52426
52421
|
msg: "Non-expired order must be closed by owner"
|
|
52427
52422
|
},
|
|
52428
52423
|
{
|
|
52429
|
-
code:
|
|
52424
|
+
code: 6064,
|
|
52430
52425
|
name: "SettlementAddressMustBeOwnerAddress",
|
|
52431
52426
|
msg: "Settlement address must be owner address"
|
|
52432
52427
|
},
|
|
52433
52428
|
{
|
|
52434
|
-
code:
|
|
52429
|
+
code: 6065,
|
|
52435
52430
|
name: "BuyAmountExceedsOrderAmount",
|
|
52436
52431
|
msg: "Buy amount exceeds order's token holdings"
|
|
52437
52432
|
},
|
|
52438
52433
|
{
|
|
52439
|
-
code:
|
|
52434
|
+
code: 6066,
|
|
52440
52435
|
name: "InsufficientTradeAmount",
|
|
52441
52436
|
msg: "Trade amount below minimum requirement"
|
|
52442
52437
|
},
|
|
52443
52438
|
{
|
|
52444
|
-
code:
|
|
52439
|
+
code: 6067,
|
|
52445
52440
|
name: "SolAmountTooLarge",
|
|
52446
52441
|
msg: "SOL amount exceeds maximum limit (10000000 SOL per transaction)"
|
|
52447
52442
|
},
|
|
52448
52443
|
{
|
|
52449
|
-
code:
|
|
52444
|
+
code: 6068,
|
|
52450
52445
|
name: "RemainingTokenAmountTooSmall",
|
|
52451
52446
|
msg: "Remaining token amount below minimum trade requirement"
|
|
52452
52447
|
},
|
|
52453
52448
|
{
|
|
52454
|
-
code:
|
|
52449
|
+
code: 6069,
|
|
52455
52450
|
name: "TradeCooldownNotExpired",
|
|
52456
52451
|
msg: "Trade cooldown period not expired, please try again later"
|
|
52457
52452
|
},
|
|
52458
52453
|
{
|
|
52459
|
-
code:
|
|
52454
|
+
code: 6070,
|
|
52460
52455
|
name: "ExceedApprovalAmount",
|
|
52461
52456
|
msg: "Sell amount exceeds approved amount, please call approval function first"
|
|
52462
52457
|
},
|
|
52463
52458
|
{
|
|
52464
|
-
code:
|
|
52459
|
+
code: 6071,
|
|
52465
52460
|
name: "CooldownNotInitialized",
|
|
52466
52461
|
msg: "Sell trade requires calling approval or buy function first to initialize cooldown PDA"
|
|
52467
52462
|
},
|
|
52468
52463
|
{
|
|
52469
|
-
code:
|
|
52464
|
+
code: 6072,
|
|
52470
52465
|
name: "CannotCloseCooldownWithBalance",
|
|
52471
52466
|
msg: "Cannot close cooldown PDA with non-zero token balance"
|
|
52472
52467
|
},
|
|
52473
52468
|
{
|
|
52474
|
-
code:
|
|
52469
|
+
code: 6073,
|
|
52475
52470
|
name: "PriceCalculationError",
|
|
52476
52471
|
msg: "Price calculation error"
|
|
52477
52472
|
},
|
|
52478
52473
|
{
|
|
52479
|
-
code:
|
|
52474
|
+
code: 6074,
|
|
52480
52475
|
name: "InvalidPartnerFeeRecipientAccount",
|
|
52481
52476
|
msg: "Invalid partner fee recipient account"
|
|
52482
52477
|
},
|
|
52483
52478
|
{
|
|
52484
|
-
code:
|
|
52479
|
+
code: 6075,
|
|
52485
52480
|
name: "InvalidBaseFeeRecipientAccount",
|
|
52486
52481
|
msg: "Invalid base fee recipient account"
|
|
52487
52482
|
},
|
|
52488
52483
|
{
|
|
52489
|
-
code:
|
|
52484
|
+
code: 6076,
|
|
52490
52485
|
name: "InvalidOrderbookAddress",
|
|
52491
52486
|
msg: "Orderbook address does not match curve account orderbook"
|
|
52492
52487
|
},
|
|
52493
52488
|
{
|
|
52494
|
-
code:
|
|
52489
|
+
code: 6077,
|
|
52495
52490
|
name: "InvalidFeePercentage",
|
|
52496
52491
|
msg: "Fee percentage must be between 0-100"
|
|
52497
52492
|
},
|
|
52498
52493
|
{
|
|
52499
|
-
code:
|
|
52494
|
+
code: 6078,
|
|
52500
52495
|
name: "InvalidFeeRate",
|
|
52501
52496
|
msg: "Fee rate exceeds maximum limit (10%)"
|
|
52502
52497
|
},
|
|
52503
52498
|
{
|
|
52504
|
-
code:
|
|
52499
|
+
code: 6079,
|
|
52505
52500
|
name: "InvalidCustomFeeRate",
|
|
52506
52501
|
msg: "Custom fee rate must be between 1000 (1%) and 5000 (5%)"
|
|
52507
52502
|
},
|
|
52508
52503
|
{
|
|
52509
|
-
code:
|
|
52504
|
+
code: 6080,
|
|
52510
52505
|
name: "InvalidBorrowDuration",
|
|
52511
52506
|
msg: "Borrow duration out of valid range (3-30 days)"
|
|
52512
52507
|
},
|
|
52513
52508
|
{
|
|
52514
|
-
code:
|
|
52509
|
+
code: 6081,
|
|
52515
52510
|
name: "InvalidStopLossPrice",
|
|
52516
52511
|
msg: "Stop loss price does not meet minimum interval requirement"
|
|
52517
52512
|
},
|
|
52518
52513
|
{
|
|
52519
|
-
code:
|
|
52514
|
+
code: 6082,
|
|
52520
52515
|
name: "NoProfitableFunds",
|
|
52521
52516
|
msg: "No profitable funds to transfer"
|
|
52522
52517
|
},
|
|
52523
52518
|
{
|
|
52524
|
-
code:
|
|
52519
|
+
code: 6083,
|
|
52525
52520
|
name: "InsufficientPoolFunds",
|
|
52526
52521
|
msg: "Insufficient pool funds"
|
|
52527
52522
|
},
|
|
52528
52523
|
{
|
|
52529
|
-
code:
|
|
52524
|
+
code: 6084,
|
|
52530
52525
|
name: "InsufficientPoolBalance",
|
|
52531
52526
|
msg: "Pool SOL account balance would fall below minimum required balance"
|
|
52532
52527
|
},
|
|
52533
52528
|
{
|
|
52534
|
-
code:
|
|
52529
|
+
code: 6085,
|
|
52535
52530
|
name: "OrderBookManagerOverflow",
|
|
52536
52531
|
msg: "Math operation overflow"
|
|
52537
52532
|
},
|
|
52538
52533
|
{
|
|
52539
|
-
code:
|
|
52534
|
+
code: 6086,
|
|
52540
52535
|
name: "OrderBookManagerInvalidSlotIndex",
|
|
52541
52536
|
msg: "Invalid slot index"
|
|
52542
52537
|
},
|
|
52543
52538
|
{
|
|
52544
|
-
code:
|
|
52539
|
+
code: 6087,
|
|
52545
52540
|
name: "OrderBookManagerInvalidAccountData",
|
|
52546
52541
|
msg: "Invalid account data"
|
|
52547
52542
|
},
|
|
52548
52543
|
{
|
|
52549
|
-
code:
|
|
52544
|
+
code: 6088,
|
|
52550
52545
|
name: "OrderBookManagerExceedsMaxCapacity",
|
|
52551
52546
|
msg: "New capacity exceeds maximum limit"
|
|
52552
52547
|
},
|
|
52553
52548
|
{
|
|
52554
|
-
code:
|
|
52549
|
+
code: 6089,
|
|
52555
52550
|
name: "OrderBookManagerExceedsAccountSizeLimit",
|
|
52556
52551
|
msg: "Account size exceeds 10MB limit"
|
|
52557
52552
|
},
|
|
52558
52553
|
{
|
|
52559
|
-
code:
|
|
52554
|
+
code: 6090,
|
|
52560
52555
|
name: "OrderBookManagerOrderIdMismatch",
|
|
52561
52556
|
msg: "Order ID mismatch"
|
|
52562
52557
|
},
|
|
52563
52558
|
{
|
|
52564
|
-
code:
|
|
52559
|
+
code: 6091,
|
|
52565
52560
|
name: "OrderBookManagerEmptyOrderBook",
|
|
52566
52561
|
msg: "Order book is empty"
|
|
52567
52562
|
},
|
|
52568
52563
|
{
|
|
52569
|
-
code:
|
|
52564
|
+
code: 6092,
|
|
52570
52565
|
name: "OrderBookManagerAccountNotWritable",
|
|
52571
52566
|
msg: "Account is not writable"
|
|
52572
52567
|
},
|
|
52573
52568
|
{
|
|
52574
|
-
code:
|
|
52569
|
+
code: 6093,
|
|
52575
52570
|
name: "OrderBookManagerNotRentExempt",
|
|
52576
52571
|
msg: "Account not rent-exempt"
|
|
52577
52572
|
},
|
|
52578
52573
|
{
|
|
52579
|
-
code:
|
|
52574
|
+
code: 6094,
|
|
52580
52575
|
name: "OrderBookManagerInvalidRentBalance",
|
|
52581
52576
|
msg: "Invalid rent balance"
|
|
52582
52577
|
},
|
|
52583
52578
|
{
|
|
52584
|
-
code:
|
|
52579
|
+
code: 6095,
|
|
52585
52580
|
name: "OrderBookManagerInsufficientFunds",
|
|
52586
52581
|
msg: "Insufficient funds"
|
|
52587
52582
|
},
|
|
52588
52583
|
{
|
|
52589
|
-
code:
|
|
52584
|
+
code: 6096,
|
|
52590
52585
|
name: "OrderBookManagerInvalidAccountOwner",
|
|
52591
52586
|
msg: "OrderBook account owner mismatch"
|
|
52592
52587
|
},
|
|
52593
52588
|
{
|
|
52594
|
-
code:
|
|
52589
|
+
code: 6097,
|
|
52595
52590
|
name: "OrderBookManagerDataOutOfBounds",
|
|
52596
52591
|
msg: "Data access out of bounds"
|
|
52597
52592
|
},
|
|
52598
52593
|
{
|
|
52599
|
-
code:
|
|
52594
|
+
code: 6098,
|
|
52600
52595
|
name: "NoValidInsertPosition",
|
|
52601
52596
|
msg: "Cannot find valid insert position, all candidates failed due to price range overlap"
|
|
52602
52597
|
},
|
|
52603
52598
|
{
|
|
52604
|
-
code:
|
|
52599
|
+
code: 6099,
|
|
52605
52600
|
name: "EmptyCloseInsertIndices",
|
|
52606
52601
|
msg: "close_insert_indices array cannot be empty"
|
|
52607
52602
|
},
|
|
52608
52603
|
{
|
|
52609
|
-
code:
|
|
52604
|
+
code: 6100,
|
|
52610
52605
|
name: "TooManyCloseInsertIndices",
|
|
52611
52606
|
msg: "close_insert_indices array cannot exceed 20 elements"
|
|
52612
52607
|
},
|
|
52613
52608
|
{
|
|
52614
|
-
code:
|
|
52609
|
+
code: 6101,
|
|
52615
52610
|
name: "CloseOrderNotFound",
|
|
52616
52611
|
msg: "Specified close order not found"
|
|
52617
52612
|
},
|
|
52618
52613
|
{
|
|
52619
|
-
code:
|
|
52614
|
+
code: 6102,
|
|
52620
52615
|
name: "LinkedListDeleteCountMismatch",
|
|
52621
52616
|
msg: "Linked list delete count mismatch: count inconsistent before/after deletion"
|
|
52622
52617
|
},
|
|
52623
52618
|
{
|
|
52624
|
-
code:
|
|
52619
|
+
code: 6103,
|
|
52625
52620
|
name: "NameTooLong",
|
|
52626
52621
|
msg: "Token name too long, max 32 bytes"
|
|
52627
52622
|
},
|
|
52628
52623
|
{
|
|
52629
|
-
code:
|
|
52624
|
+
code: 6104,
|
|
52630
52625
|
name: "NameEmpty",
|
|
52631
52626
|
msg: "Token name cannot be empty"
|
|
52632
52627
|
},
|
|
52633
52628
|
{
|
|
52634
|
-
code:
|
|
52629
|
+
code: 6105,
|
|
52635
52630
|
name: "SymbolTooLong",
|
|
52636
52631
|
msg: "Token symbol too long, max 10 bytes"
|
|
52637
52632
|
},
|
|
52638
52633
|
{
|
|
52639
|
-
code:
|
|
52634
|
+
code: 6106,
|
|
52640
52635
|
name: "SymbolEmpty",
|
|
52641
52636
|
msg: "Token symbol cannot be empty"
|
|
52642
52637
|
},
|
|
52643
52638
|
{
|
|
52644
|
-
code:
|
|
52639
|
+
code: 6107,
|
|
52645
52640
|
name: "UriTooLong",
|
|
52646
52641
|
msg: "URI too long, max 200 bytes"
|
|
52647
52642
|
},
|
|
52648
52643
|
{
|
|
52649
|
-
code:
|
|
52644
|
+
code: 6108,
|
|
52650
52645
|
name: "UriEmpty",
|
|
52651
52646
|
msg: "URI cannot be empty"
|
|
52652
52647
|
},
|
|
52653
52648
|
{
|
|
52654
|
-
code:
|
|
52649
|
+
code: 6109,
|
|
52655
52650
|
name: "IncompleteAdvancedPoolParams",
|
|
52656
52651
|
msg: "Incomplete advanced pool parameters: custom_lp_sol, custom_lp_token, custom_borrow_ratio, custom_borrow_duration must be provided together"
|
|
52657
52652
|
},
|
|
52658
52653
|
{
|
|
52659
|
-
code:
|
|
52654
|
+
code: 6110,
|
|
52660
52655
|
name: "InvalidInitialVirtualSol",
|
|
52661
52656
|
msg: "Initial virtual SOL out of valid range"
|
|
52662
52657
|
},
|
|
52663
52658
|
{
|
|
52664
|
-
code:
|
|
52659
|
+
code: 6111,
|
|
52665
52660
|
name: "InvalidInitialVirtualToken",
|
|
52666
52661
|
msg: "Initial virtual Token out of valid range"
|
|
52667
52662
|
},
|
|
52668
52663
|
{
|
|
52669
|
-
code:
|
|
52664
|
+
code: 6112,
|
|
52670
52665
|
name: "InvalidBorrowPoolRatio",
|
|
52671
52666
|
msg: "Borrow pool ratio out of valid range"
|
|
52672
52667
|
},
|
|
52673
52668
|
{
|
|
52674
|
-
code:
|
|
52669
|
+
code: 6113,
|
|
52675
52670
|
name: "BorrowTokenCalculationOverflow",
|
|
52676
52671
|
msg: "Borrow pool token amount calculation overflow"
|
|
52677
52672
|
},
|
|
52678
52673
|
{
|
|
52679
|
-
code:
|
|
52674
|
+
code: 6114,
|
|
52680
52675
|
name: "BorrowTokenAmountZero",
|
|
52681
52676
|
msg: "Borrow pool token amount cannot be zero"
|
|
52682
52677
|
}
|