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