pinpet-sdk 2.1.25 → 2.1.26
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/dist/pinpet-sdk.cjs.js
CHANGED
|
@@ -49760,7 +49760,7 @@ class OrderUtils$2 {
|
|
|
49760
49760
|
|
|
49761
49761
|
var orderUtils = OrderUtils$2;
|
|
49762
49762
|
|
|
49763
|
-
var address = "
|
|
49763
|
+
var address = "CYdRzRacZ5kTc9Ht3U7mFhbsyxG3sZGEzC4cNf2Gjg2W";
|
|
49764
49764
|
var metadata = {
|
|
49765
49765
|
name: "pinpet",
|
|
49766
49766
|
version: "0.1.0",
|
|
@@ -52334,471 +52334,476 @@ var errors = [
|
|
|
52334
52334
|
},
|
|
52335
52335
|
{
|
|
52336
52336
|
code: 6021,
|
|
52337
|
+
name: "CloseShortImpossibleState",
|
|
52338
|
+
msg: "Close short impossible state: current_total should always be greater than remaining_close_reduced_sol_with_fee"
|
|
52339
|
+
},
|
|
52340
|
+
{
|
|
52341
|
+
code: 6022,
|
|
52337
52342
|
name: "FeeSplitCalculationOverflow",
|
|
52338
52343
|
msg: "Fee split calculation overflow"
|
|
52339
52344
|
},
|
|
52340
52345
|
{
|
|
52341
|
-
code:
|
|
52346
|
+
code: 6023,
|
|
52342
52347
|
name: "FeeAccumulationOverflow",
|
|
52343
52348
|
msg: "Fee accumulation overflow"
|
|
52344
52349
|
},
|
|
52345
52350
|
{
|
|
52346
|
-
code:
|
|
52351
|
+
code: 6024,
|
|
52347
52352
|
name: "PartnerFeeAdditionOverflow",
|
|
52348
52353
|
msg: "Partner fee addition overflow"
|
|
52349
52354
|
},
|
|
52350
52355
|
{
|
|
52351
|
-
code:
|
|
52356
|
+
code: 6025,
|
|
52352
52357
|
name: "BaseFeeAdditionOverflow",
|
|
52353
52358
|
msg: "Base fee addition overflow"
|
|
52354
52359
|
},
|
|
52355
52360
|
{
|
|
52356
|
-
code:
|
|
52361
|
+
code: 6026,
|
|
52357
52362
|
name: "PoolFeeDeductionOverflow",
|
|
52358
52363
|
msg: "Pool fee deduction overflow"
|
|
52359
52364
|
},
|
|
52360
52365
|
{
|
|
52361
|
-
code:
|
|
52366
|
+
code: 6027,
|
|
52362
52367
|
name: "FeeRandomDiscountOverflow",
|
|
52363
52368
|
msg: "Fee random discount calculation overflow"
|
|
52364
52369
|
},
|
|
52365
52370
|
{
|
|
52366
|
-
code:
|
|
52371
|
+
code: 6028,
|
|
52367
52372
|
name: "SolReserveAdditionOverflow",
|
|
52368
52373
|
msg: "SOL reserve addition overflow"
|
|
52369
52374
|
},
|
|
52370
52375
|
{
|
|
52371
|
-
code:
|
|
52376
|
+
code: 6029,
|
|
52372
52377
|
name: "SolReserveDeductionOverflow",
|
|
52373
52378
|
msg: "SOL reserve deduction overflow"
|
|
52374
52379
|
},
|
|
52375
52380
|
{
|
|
52376
|
-
code:
|
|
52381
|
+
code: 6030,
|
|
52377
52382
|
name: "TokenReserveAdditionOverflow",
|
|
52378
52383
|
msg: "Token reserve addition overflow"
|
|
52379
52384
|
},
|
|
52380
52385
|
{
|
|
52381
|
-
code:
|
|
52386
|
+
code: 6031,
|
|
52382
52387
|
name: "LamportsAdditionOverflow",
|
|
52383
52388
|
msg: "Lamports addition overflow"
|
|
52384
52389
|
},
|
|
52385
52390
|
{
|
|
52386
|
-
code:
|
|
52391
|
+
code: 6032,
|
|
52387
52392
|
name: "LamportsDeductionOverflow",
|
|
52388
52393
|
msg: "Lamports deduction overflow"
|
|
52389
52394
|
},
|
|
52390
52395
|
{
|
|
52391
|
-
code:
|
|
52396
|
+
code: 6033,
|
|
52392
52397
|
name: "DeadlineCalculationOverflow",
|
|
52393
52398
|
msg: "Deadline calculation overflow"
|
|
52394
52399
|
},
|
|
52395
52400
|
{
|
|
52396
|
-
code:
|
|
52401
|
+
code: 6034,
|
|
52397
52402
|
name: "FeeDiscountFlagOverflow",
|
|
52398
52403
|
msg: "Fee discount flag calculation overflow"
|
|
52399
52404
|
},
|
|
52400
52405
|
{
|
|
52401
|
-
code:
|
|
52406
|
+
code: 6035,
|
|
52402
52407
|
name: "Unauthorized",
|
|
52403
52408
|
msg: "Unauthorized operation"
|
|
52404
52409
|
},
|
|
52405
52410
|
{
|
|
52406
|
-
code:
|
|
52411
|
+
code: 6036,
|
|
52407
52412
|
name: "RequiredParameter",
|
|
52408
52413
|
msg: "All parameters are required during initialization"
|
|
52409
52414
|
},
|
|
52410
52415
|
{
|
|
52411
|
-
code:
|
|
52416
|
+
code: 6037,
|
|
52412
52417
|
name: "CurveCalculationError",
|
|
52413
52418
|
msg: "Curve calculation error"
|
|
52414
52419
|
},
|
|
52415
52420
|
{
|
|
52416
|
-
code:
|
|
52421
|
+
code: 6038,
|
|
52417
52422
|
name: "InitialPriceCalculationError",
|
|
52418
52423
|
msg: "Initial price calculation failed"
|
|
52419
52424
|
},
|
|
52420
52425
|
{
|
|
52421
|
-
code:
|
|
52426
|
+
code: 6039,
|
|
52422
52427
|
name: "BuyReserveRecalculationError",
|
|
52423
52428
|
msg: "Reserve recalculation failed (after buy)"
|
|
52424
52429
|
},
|
|
52425
52430
|
{
|
|
52426
|
-
code:
|
|
52431
|
+
code: 6040,
|
|
52427
52432
|
name: "SellReserveRecalculationError",
|
|
52428
52433
|
msg: "Reserve recalculation failed (after sell)"
|
|
52429
52434
|
},
|
|
52430
52435
|
{
|
|
52431
|
-
code:
|
|
52436
|
+
code: 6041,
|
|
52432
52437
|
name: "TotalAmountWithFeeError",
|
|
52433
52438
|
msg: "Total amount with fee calculation failed"
|
|
52434
52439
|
},
|
|
52435
52440
|
{
|
|
52436
|
-
code:
|
|
52441
|
+
code: 6042,
|
|
52437
52442
|
name: "AmountAfterFeeError",
|
|
52438
52443
|
msg: "Amount after fee calculation failed"
|
|
52439
52444
|
},
|
|
52440
52445
|
{
|
|
52441
|
-
code:
|
|
52446
|
+
code: 6043,
|
|
52442
52447
|
name: "BuyPriceRangeCalculationError",
|
|
52443
52448
|
msg: "Buy price range calculation failed"
|
|
52444
52449
|
},
|
|
52445
52450
|
{
|
|
52446
|
-
code:
|
|
52451
|
+
code: 6044,
|
|
52447
52452
|
name: "SellPriceRangeCalculationError",
|
|
52448
52453
|
msg: "Sell price range calculation failed"
|
|
52449
52454
|
},
|
|
52450
52455
|
{
|
|
52451
|
-
code:
|
|
52456
|
+
code: 6045,
|
|
52452
52457
|
name: "PriceAtStopLossBoundary",
|
|
52453
52458
|
msg: "Price has reached stop-loss boundary, head order must be liquidated first"
|
|
52454
52459
|
},
|
|
52455
52460
|
{
|
|
52456
|
-
code:
|
|
52461
|
+
code: 6046,
|
|
52457
52462
|
name: "RemainingRangeCalculationError",
|
|
52458
52463
|
msg: "Remaining range calculation failed"
|
|
52459
52464
|
},
|
|
52460
52465
|
{
|
|
52461
|
-
code:
|
|
52466
|
+
code: 6047,
|
|
52462
52467
|
name: "FullRangeCalculationError",
|
|
52463
52468
|
msg: "Full range calculation failed"
|
|
52464
52469
|
},
|
|
52465
52470
|
{
|
|
52466
|
-
code:
|
|
52471
|
+
code: 6048,
|
|
52467
52472
|
name: "BuyFromPriceWithTokenNoneError",
|
|
52468
52473
|
msg: "Curve function returned None: buy_from_price_with_token_output"
|
|
52469
52474
|
},
|
|
52470
52475
|
{
|
|
52471
|
-
code:
|
|
52476
|
+
code: 6049,
|
|
52472
52477
|
name: "SellFromPriceWithTokenNoneError",
|
|
52473
52478
|
msg: "Curve function returned None: sell_from_price_with_token_input"
|
|
52474
52479
|
},
|
|
52475
52480
|
{
|
|
52476
|
-
code:
|
|
52481
|
+
code: 6050,
|
|
52477
52482
|
name: "ExceedsMaxSolAmount",
|
|
52478
52483
|
msg: "Required SOL amount exceeds user-set maximum"
|
|
52479
52484
|
},
|
|
52480
52485
|
{
|
|
52481
|
-
code:
|
|
52486
|
+
code: 6051,
|
|
52482
52487
|
name: "InsufficientSolOutput",
|
|
52483
52488
|
msg: "Insufficient SOL output"
|
|
52484
52489
|
},
|
|
52485
52490
|
{
|
|
52486
|
-
code:
|
|
52491
|
+
code: 6052,
|
|
52487
52492
|
name: "InsufficientRepayment",
|
|
52488
52493
|
msg: "Insufficient proceeds to repay loan"
|
|
52489
52494
|
},
|
|
52490
52495
|
{
|
|
52491
|
-
code:
|
|
52496
|
+
code: 6053,
|
|
52492
52497
|
name: "InsufficientBorrowingReserve",
|
|
52493
52498
|
msg: "Insufficient borrowing reserve"
|
|
52494
52499
|
},
|
|
52495
52500
|
{
|
|
52496
|
-
code:
|
|
52501
|
+
code: 6054,
|
|
52497
52502
|
name: "InsufficientTokenSale",
|
|
52498
52503
|
msg: "Insufficient token sale amount"
|
|
52499
52504
|
},
|
|
52500
52505
|
{
|
|
52501
|
-
code:
|
|
52506
|
+
code: 6055,
|
|
52502
52507
|
name: "InsufficientLiquidity",
|
|
52503
52508
|
msg: "Insufficient liquidity in current order"
|
|
52504
52509
|
},
|
|
52505
52510
|
{
|
|
52506
|
-
code:
|
|
52511
|
+
code: 6056,
|
|
52507
52512
|
name: "InsufficientMarketLiquidity",
|
|
52508
52513
|
msg: "Insufficient market liquidity, cannot satisfy trade even after liquidating all stop-loss orders"
|
|
52509
52514
|
},
|
|
52510
52515
|
{
|
|
52511
|
-
code:
|
|
52516
|
+
code: 6057,
|
|
52512
52517
|
name: "TokenAmountDifferenceOutOfRange",
|
|
52513
52518
|
msg: "Token amount difference exceeds valid range in margin trade"
|
|
52514
52519
|
},
|
|
52515
52520
|
{
|
|
52516
|
-
code:
|
|
52521
|
+
code: 6058,
|
|
52517
52522
|
name: "BorrowAmountMismatch",
|
|
52518
52523
|
msg: "Borrow amount mismatch with locked tokens"
|
|
52519
52524
|
},
|
|
52520
52525
|
{
|
|
52521
|
-
code:
|
|
52526
|
+
code: 6059,
|
|
52522
52527
|
name: "CloseFeeCalculationError",
|
|
52523
52528
|
msg: "Close fee calculation error"
|
|
52524
52529
|
},
|
|
52525
52530
|
{
|
|
52526
|
-
code:
|
|
52531
|
+
code: 6060,
|
|
52527
52532
|
name: "InsufficientMargin",
|
|
52528
52533
|
msg: "Insufficient margin"
|
|
52529
52534
|
},
|
|
52530
52535
|
{
|
|
52531
|
-
code:
|
|
52536
|
+
code: 6061,
|
|
52532
52537
|
name: "InsufficientMinimumMargin",
|
|
52533
52538
|
msg: "Margin below minimum requirement"
|
|
52534
52539
|
},
|
|
52535
52540
|
{
|
|
52536
|
-
code:
|
|
52541
|
+
code: 6062,
|
|
52537
52542
|
name: "InvalidAccountOwner",
|
|
52538
52543
|
msg: "Invalid account owner"
|
|
52539
52544
|
},
|
|
52540
52545
|
{
|
|
52541
|
-
code:
|
|
52546
|
+
code: 6063,
|
|
52542
52547
|
name: "SellAmountExceedsOrderAmount",
|
|
52543
52548
|
msg: "Sell amount exceeds order's token holdings"
|
|
52544
52549
|
},
|
|
52545
52550
|
{
|
|
52546
|
-
code:
|
|
52551
|
+
code: 6064,
|
|
52547
52552
|
name: "OrderNotExpiredMustCloseByOwner",
|
|
52548
52553
|
msg: "Non-expired order must be closed by owner"
|
|
52549
52554
|
},
|
|
52550
52555
|
{
|
|
52551
|
-
code:
|
|
52556
|
+
code: 6065,
|
|
52552
52557
|
name: "SettlementAddressMustBeOwnerAddress",
|
|
52553
52558
|
msg: "Settlement address must be owner address"
|
|
52554
52559
|
},
|
|
52555
52560
|
{
|
|
52556
|
-
code:
|
|
52561
|
+
code: 6066,
|
|
52557
52562
|
name: "BuyAmountExceedsOrderAmount",
|
|
52558
52563
|
msg: "Buy amount exceeds order's token holdings"
|
|
52559
52564
|
},
|
|
52560
52565
|
{
|
|
52561
|
-
code:
|
|
52566
|
+
code: 6067,
|
|
52562
52567
|
name: "InsufficientTradeAmount",
|
|
52563
52568
|
msg: "Trade amount below minimum requirement"
|
|
52564
52569
|
},
|
|
52565
52570
|
{
|
|
52566
|
-
code:
|
|
52571
|
+
code: 6068,
|
|
52567
52572
|
name: "SolAmountTooLarge",
|
|
52568
52573
|
msg: "SOL amount exceeds maximum limit (10000000 SOL per transaction)"
|
|
52569
52574
|
},
|
|
52570
52575
|
{
|
|
52571
|
-
code:
|
|
52576
|
+
code: 6069,
|
|
52572
52577
|
name: "RemainingTokenAmountTooSmall",
|
|
52573
52578
|
msg: "Remaining token amount below minimum trade requirement"
|
|
52574
52579
|
},
|
|
52575
52580
|
{
|
|
52576
|
-
code:
|
|
52581
|
+
code: 6070,
|
|
52577
52582
|
name: "TradeCooldownNotExpired",
|
|
52578
52583
|
msg: "Trade cooldown period not expired, please try again later"
|
|
52579
52584
|
},
|
|
52580
52585
|
{
|
|
52581
|
-
code:
|
|
52586
|
+
code: 6071,
|
|
52582
52587
|
name: "ExceedApprovalAmount",
|
|
52583
52588
|
msg: "Sell amount exceeds approved amount, please call approval function first"
|
|
52584
52589
|
},
|
|
52585
52590
|
{
|
|
52586
|
-
code:
|
|
52591
|
+
code: 6072,
|
|
52587
52592
|
name: "CooldownNotInitialized",
|
|
52588
52593
|
msg: "Sell trade requires calling approval or buy function first to initialize cooldown PDA"
|
|
52589
52594
|
},
|
|
52590
52595
|
{
|
|
52591
|
-
code:
|
|
52596
|
+
code: 6073,
|
|
52592
52597
|
name: "CannotCloseCooldownWithBalance",
|
|
52593
52598
|
msg: "Cannot close cooldown PDA with non-zero token balance"
|
|
52594
52599
|
},
|
|
52595
52600
|
{
|
|
52596
|
-
code:
|
|
52601
|
+
code: 6074,
|
|
52597
52602
|
name: "PriceCalculationError",
|
|
52598
52603
|
msg: "Price calculation error"
|
|
52599
52604
|
},
|
|
52600
52605
|
{
|
|
52601
|
-
code:
|
|
52606
|
+
code: 6075,
|
|
52602
52607
|
name: "InvalidPartnerFeeRecipientAccount",
|
|
52603
52608
|
msg: "Invalid partner fee recipient account"
|
|
52604
52609
|
},
|
|
52605
52610
|
{
|
|
52606
|
-
code:
|
|
52611
|
+
code: 6076,
|
|
52607
52612
|
name: "InvalidBaseFeeRecipientAccount",
|
|
52608
52613
|
msg: "Invalid base fee recipient account"
|
|
52609
52614
|
},
|
|
52610
52615
|
{
|
|
52611
|
-
code:
|
|
52616
|
+
code: 6077,
|
|
52612
52617
|
name: "InvalidOrderbookAddress",
|
|
52613
52618
|
msg: "Orderbook address does not match curve account orderbook"
|
|
52614
52619
|
},
|
|
52615
52620
|
{
|
|
52616
|
-
code:
|
|
52621
|
+
code: 6078,
|
|
52617
52622
|
name: "InvalidFeePercentage",
|
|
52618
52623
|
msg: "Fee percentage must be between 0-100"
|
|
52619
52624
|
},
|
|
52620
52625
|
{
|
|
52621
|
-
code:
|
|
52626
|
+
code: 6079,
|
|
52622
52627
|
name: "InvalidFeeRate",
|
|
52623
52628
|
msg: "Fee rate exceeds maximum limit (10%)"
|
|
52624
52629
|
},
|
|
52625
52630
|
{
|
|
52626
|
-
code:
|
|
52631
|
+
code: 6080,
|
|
52627
52632
|
name: "InvalidCustomFeeRate",
|
|
52628
52633
|
msg: "Custom fee rate must be between 1000 (1%) and 5000 (5%)"
|
|
52629
52634
|
},
|
|
52630
52635
|
{
|
|
52631
|
-
code:
|
|
52636
|
+
code: 6081,
|
|
52632
52637
|
name: "InvalidBorrowDuration",
|
|
52633
52638
|
msg: "Borrow duration out of valid range (3-30 days)"
|
|
52634
52639
|
},
|
|
52635
52640
|
{
|
|
52636
|
-
code:
|
|
52641
|
+
code: 6082,
|
|
52637
52642
|
name: "InvalidStopLossPrice",
|
|
52638
52643
|
msg: "Stop loss price does not meet minimum interval requirement"
|
|
52639
52644
|
},
|
|
52640
52645
|
{
|
|
52641
|
-
code:
|
|
52646
|
+
code: 6083,
|
|
52642
52647
|
name: "NoProfitableFunds",
|
|
52643
52648
|
msg: "No profitable funds to transfer"
|
|
52644
52649
|
},
|
|
52645
52650
|
{
|
|
52646
|
-
code:
|
|
52651
|
+
code: 6084,
|
|
52647
52652
|
name: "InsufficientPoolFunds",
|
|
52648
52653
|
msg: "Insufficient pool funds"
|
|
52649
52654
|
},
|
|
52650
52655
|
{
|
|
52651
|
-
code:
|
|
52656
|
+
code: 6085,
|
|
52652
52657
|
name: "InsufficientPoolBalance",
|
|
52653
52658
|
msg: "Pool SOL account balance would fall below minimum required balance"
|
|
52654
52659
|
},
|
|
52655
52660
|
{
|
|
52656
|
-
code:
|
|
52661
|
+
code: 6086,
|
|
52657
52662
|
name: "OrderBookManagerOverflow",
|
|
52658
52663
|
msg: "Math operation overflow"
|
|
52659
52664
|
},
|
|
52660
52665
|
{
|
|
52661
|
-
code:
|
|
52666
|
+
code: 6087,
|
|
52662
52667
|
name: "OrderBookManagerInvalidSlotIndex",
|
|
52663
52668
|
msg: "Invalid slot index"
|
|
52664
52669
|
},
|
|
52665
52670
|
{
|
|
52666
|
-
code:
|
|
52671
|
+
code: 6088,
|
|
52667
52672
|
name: "OrderBookManagerInvalidAccountData",
|
|
52668
52673
|
msg: "Invalid account data"
|
|
52669
52674
|
},
|
|
52670
52675
|
{
|
|
52671
|
-
code:
|
|
52676
|
+
code: 6089,
|
|
52672
52677
|
name: "OrderBookManagerExceedsMaxCapacity",
|
|
52673
52678
|
msg: "New capacity exceeds maximum limit"
|
|
52674
52679
|
},
|
|
52675
52680
|
{
|
|
52676
|
-
code:
|
|
52681
|
+
code: 6090,
|
|
52677
52682
|
name: "OrderBookManagerExceedsAccountSizeLimit",
|
|
52678
52683
|
msg: "Account size exceeds 10MB limit"
|
|
52679
52684
|
},
|
|
52680
52685
|
{
|
|
52681
|
-
code:
|
|
52686
|
+
code: 6091,
|
|
52682
52687
|
name: "OrderBookManagerOrderIdMismatch",
|
|
52683
52688
|
msg: "Order ID mismatch"
|
|
52684
52689
|
},
|
|
52685
52690
|
{
|
|
52686
|
-
code:
|
|
52691
|
+
code: 6092,
|
|
52687
52692
|
name: "OrderBookManagerEmptyOrderBook",
|
|
52688
52693
|
msg: "Order book is empty"
|
|
52689
52694
|
},
|
|
52690
52695
|
{
|
|
52691
|
-
code:
|
|
52696
|
+
code: 6093,
|
|
52692
52697
|
name: "OrderBookManagerAccountNotWritable",
|
|
52693
52698
|
msg: "Account is not writable"
|
|
52694
52699
|
},
|
|
52695
52700
|
{
|
|
52696
|
-
code:
|
|
52701
|
+
code: 6094,
|
|
52697
52702
|
name: "OrderBookManagerNotRentExempt",
|
|
52698
52703
|
msg: "Account not rent-exempt"
|
|
52699
52704
|
},
|
|
52700
52705
|
{
|
|
52701
|
-
code:
|
|
52706
|
+
code: 6095,
|
|
52702
52707
|
name: "OrderBookManagerInvalidRentBalance",
|
|
52703
52708
|
msg: "Invalid rent balance"
|
|
52704
52709
|
},
|
|
52705
52710
|
{
|
|
52706
|
-
code:
|
|
52711
|
+
code: 6096,
|
|
52707
52712
|
name: "OrderBookManagerInsufficientFunds",
|
|
52708
52713
|
msg: "Insufficient funds"
|
|
52709
52714
|
},
|
|
52710
52715
|
{
|
|
52711
|
-
code:
|
|
52716
|
+
code: 6097,
|
|
52712
52717
|
name: "OrderBookManagerInvalidAccountOwner",
|
|
52713
52718
|
msg: "OrderBook account owner mismatch"
|
|
52714
52719
|
},
|
|
52715
52720
|
{
|
|
52716
|
-
code:
|
|
52721
|
+
code: 6098,
|
|
52717
52722
|
name: "OrderBookManagerDataOutOfBounds",
|
|
52718
52723
|
msg: "Data access out of bounds"
|
|
52719
52724
|
},
|
|
52720
52725
|
{
|
|
52721
|
-
code:
|
|
52726
|
+
code: 6099,
|
|
52722
52727
|
name: "NoValidInsertPosition",
|
|
52723
52728
|
msg: "Cannot find valid insert position, all candidates failed due to price range overlap"
|
|
52724
52729
|
},
|
|
52725
52730
|
{
|
|
52726
|
-
code:
|
|
52731
|
+
code: 6100,
|
|
52727
52732
|
name: "EmptyCloseInsertIndices",
|
|
52728
52733
|
msg: "close_insert_indices array cannot be empty"
|
|
52729
52734
|
},
|
|
52730
52735
|
{
|
|
52731
|
-
code:
|
|
52736
|
+
code: 6101,
|
|
52732
52737
|
name: "TooManyCloseInsertIndices",
|
|
52733
52738
|
msg: "close_insert_indices array cannot exceed 20 elements"
|
|
52734
52739
|
},
|
|
52735
52740
|
{
|
|
52736
|
-
code:
|
|
52741
|
+
code: 6102,
|
|
52737
52742
|
name: "CloseOrderNotFound",
|
|
52738
52743
|
msg: "Specified close order not found"
|
|
52739
52744
|
},
|
|
52740
52745
|
{
|
|
52741
|
-
code:
|
|
52746
|
+
code: 6103,
|
|
52742
52747
|
name: "LinkedListDeleteCountMismatch",
|
|
52743
52748
|
msg: "Linked list delete count mismatch: count inconsistent before/after deletion"
|
|
52744
52749
|
},
|
|
52745
52750
|
{
|
|
52746
|
-
code:
|
|
52751
|
+
code: 6104,
|
|
52747
52752
|
name: "NameTooLong",
|
|
52748
52753
|
msg: "Token name too long, max 32 bytes"
|
|
52749
52754
|
},
|
|
52750
52755
|
{
|
|
52751
|
-
code:
|
|
52756
|
+
code: 6105,
|
|
52752
52757
|
name: "NameEmpty",
|
|
52753
52758
|
msg: "Token name cannot be empty"
|
|
52754
52759
|
},
|
|
52755
52760
|
{
|
|
52756
|
-
code:
|
|
52761
|
+
code: 6106,
|
|
52757
52762
|
name: "SymbolTooLong",
|
|
52758
52763
|
msg: "Token symbol too long, max 10 bytes"
|
|
52759
52764
|
},
|
|
52760
52765
|
{
|
|
52761
|
-
code:
|
|
52766
|
+
code: 6107,
|
|
52762
52767
|
name: "SymbolEmpty",
|
|
52763
52768
|
msg: "Token symbol cannot be empty"
|
|
52764
52769
|
},
|
|
52765
52770
|
{
|
|
52766
|
-
code:
|
|
52771
|
+
code: 6108,
|
|
52767
52772
|
name: "UriTooLong",
|
|
52768
52773
|
msg: "URI too long, max 200 bytes"
|
|
52769
52774
|
},
|
|
52770
52775
|
{
|
|
52771
|
-
code:
|
|
52776
|
+
code: 6109,
|
|
52772
52777
|
name: "UriEmpty",
|
|
52773
52778
|
msg: "URI cannot be empty"
|
|
52774
52779
|
},
|
|
52775
52780
|
{
|
|
52776
|
-
code:
|
|
52781
|
+
code: 6110,
|
|
52777
52782
|
name: "IncompleteAdvancedPoolParams",
|
|
52778
52783
|
msg: "Incomplete advanced pool parameters: custom_lp_sol, custom_lp_token, custom_borrow_ratio, custom_borrow_duration must be provided together"
|
|
52779
52784
|
},
|
|
52780
52785
|
{
|
|
52781
|
-
code:
|
|
52786
|
+
code: 6111,
|
|
52782
52787
|
name: "InvalidInitialVirtualSol",
|
|
52783
52788
|
msg: "Initial virtual SOL out of valid range"
|
|
52784
52789
|
},
|
|
52785
52790
|
{
|
|
52786
|
-
code:
|
|
52791
|
+
code: 6112,
|
|
52787
52792
|
name: "InvalidInitialVirtualToken",
|
|
52788
52793
|
msg: "Initial virtual Token out of valid range"
|
|
52789
52794
|
},
|
|
52790
52795
|
{
|
|
52791
|
-
code:
|
|
52796
|
+
code: 6113,
|
|
52792
52797
|
name: "InvalidBorrowPoolRatio",
|
|
52793
52798
|
msg: "Borrow pool ratio out of valid range"
|
|
52794
52799
|
},
|
|
52795
52800
|
{
|
|
52796
|
-
code:
|
|
52801
|
+
code: 6114,
|
|
52797
52802
|
name: "BorrowTokenCalculationOverflow",
|
|
52798
52803
|
msg: "Borrow pool token amount calculation overflow"
|
|
52799
52804
|
},
|
|
52800
52805
|
{
|
|
52801
|
-
code:
|
|
52806
|
+
code: 6115,
|
|
52802
52807
|
name: "BorrowTokenAmountZero",
|
|
52803
52808
|
msg: "Borrow pool token amount cannot be zero"
|
|
52804
52809
|
}
|