@exponent-labs/exponent-clmm-idl 0.9.26 → 0.9.28
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/package.json +1 -1
- package/src/exponent_clmm.json +33 -11
- package/src/exponent_clmm.ts +31 -9
package/package.json
CHANGED
package/src/exponent_clmm.json
CHANGED
|
@@ -2679,38 +2679,63 @@
|
|
|
2679
2679
|
},
|
|
2680
2680
|
{
|
|
2681
2681
|
"code": 6036,
|
|
2682
|
+
"name": "CrossingLiquidityWouldRoundToZero",
|
|
2683
|
+
"msg": "Partial withdrawal would round crossing liquidity to zero; withdraw the full position instead"
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"code": 6037,
|
|
2682
2687
|
"name": "InvalidSyExchangeRate",
|
|
2683
2688
|
"msg": "SY exchange rate must be positive"
|
|
2684
2689
|
},
|
|
2685
2690
|
{
|
|
2686
|
-
"code":
|
|
2691
|
+
"code": 6038,
|
|
2687
2692
|
"name": "LpSupplyInvariantViolated",
|
|
2688
2693
|
"msg": "LP supply does not match total position balances"
|
|
2689
2694
|
},
|
|
2690
2695
|
{
|
|
2691
|
-
"code":
|
|
2696
|
+
"code": 6039,
|
|
2692
2697
|
"name": "TickShareSupplyBelowMinimum",
|
|
2693
2698
|
"msg": "Tick share supply must be zero or at least one"
|
|
2694
2699
|
},
|
|
2695
2700
|
{
|
|
2696
|
-
"code":
|
|
2701
|
+
"code": 6040,
|
|
2697
2702
|
"name": "TickImpliedApyAboveMaximum",
|
|
2698
2703
|
"msg": "Tick implied APY exceeds the maximum"
|
|
2699
2704
|
},
|
|
2700
2705
|
{
|
|
2701
|
-
"code":
|
|
2706
|
+
"code": 6041,
|
|
2702
2707
|
"name": "InvalidImpliedApy",
|
|
2703
2708
|
"msg": "Implied APY is outside the supported range"
|
|
2704
2709
|
},
|
|
2705
2710
|
{
|
|
2706
|
-
"code":
|
|
2711
|
+
"code": 6042,
|
|
2707
2712
|
"name": "ImpliedApyChangeExceedsLimit",
|
|
2708
2713
|
"msg": "Implied APY change exceeds the configured limit"
|
|
2709
2714
|
},
|
|
2710
2715
|
{
|
|
2711
|
-
"code":
|
|
2716
|
+
"code": 6043,
|
|
2712
2717
|
"name": "FeeCollectionLimitExceeded",
|
|
2713
2718
|
"msg": "Fee collection exceeds the configured limit"
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"code": 6044,
|
|
2722
|
+
"name": "MissingVaultForPyIndex",
|
|
2723
|
+
"msg": "Vault account required to resolve py_index"
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
"code": 6045,
|
|
2727
|
+
"name": "InvalidCurrentSpotPrice",
|
|
2728
|
+
"msg": "Current spot price must be positive"
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
"code": 6046,
|
|
2732
|
+
"name": "InvalidDepositSplitTick",
|
|
2733
|
+
"msg": "Deposit split tick must be positive and not exceed the SY slice start"
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
"code": 6047,
|
|
2737
|
+
"name": "SwapAmountBelowMinimum",
|
|
2738
|
+
"msg": "Swap input and output must each be at least the minimum operation size"
|
|
2714
2739
|
}
|
|
2715
2740
|
],
|
|
2716
2741
|
"types": [
|
|
@@ -4429,10 +4454,7 @@
|
|
|
4429
4454
|
}
|
|
4430
4455
|
},
|
|
4431
4456
|
{
|
|
4432
|
-
"name": "
|
|
4433
|
-
"docs": [
|
|
4434
|
-
"Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
|
|
4435
|
-
],
|
|
4457
|
+
"name": "self_cpi_status",
|
|
4436
4458
|
"type": "u8"
|
|
4437
4459
|
},
|
|
4438
4460
|
{
|
|
@@ -6087,4 +6109,4 @@
|
|
|
6087
6109
|
}
|
|
6088
6110
|
}
|
|
6089
6111
|
]
|
|
6090
|
-
}
|
|
6112
|
+
}
|
package/src/exponent_clmm.ts
CHANGED
|
@@ -2685,38 +2685,63 @@ export type ExponentClmm = {
|
|
|
2685
2685
|
},
|
|
2686
2686
|
{
|
|
2687
2687
|
"code": 6036,
|
|
2688
|
+
"name": "crossingLiquidityWouldRoundToZero",
|
|
2689
|
+
"msg": "Partial withdrawal would round crossing liquidity to zero; withdraw the full position instead"
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"code": 6037,
|
|
2688
2693
|
"name": "invalidSyExchangeRate",
|
|
2689
2694
|
"msg": "SY exchange rate must be positive"
|
|
2690
2695
|
},
|
|
2691
2696
|
{
|
|
2692
|
-
"code":
|
|
2697
|
+
"code": 6038,
|
|
2693
2698
|
"name": "lpSupplyInvariantViolated",
|
|
2694
2699
|
"msg": "LP supply does not match total position balances"
|
|
2695
2700
|
},
|
|
2696
2701
|
{
|
|
2697
|
-
"code":
|
|
2702
|
+
"code": 6039,
|
|
2698
2703
|
"name": "tickShareSupplyBelowMinimum",
|
|
2699
2704
|
"msg": "Tick share supply must be zero or at least one"
|
|
2700
2705
|
},
|
|
2701
2706
|
{
|
|
2702
|
-
"code":
|
|
2707
|
+
"code": 6040,
|
|
2703
2708
|
"name": "tickImpliedApyAboveMaximum",
|
|
2704
2709
|
"msg": "Tick implied APY exceeds the maximum"
|
|
2705
2710
|
},
|
|
2706
2711
|
{
|
|
2707
|
-
"code":
|
|
2712
|
+
"code": 6041,
|
|
2708
2713
|
"name": "invalidImpliedApy",
|
|
2709
2714
|
"msg": "Implied APY is outside the supported range"
|
|
2710
2715
|
},
|
|
2711
2716
|
{
|
|
2712
|
-
"code":
|
|
2717
|
+
"code": 6042,
|
|
2713
2718
|
"name": "impliedApyChangeExceedsLimit",
|
|
2714
2719
|
"msg": "Implied APY change exceeds the configured limit"
|
|
2715
2720
|
},
|
|
2716
2721
|
{
|
|
2717
|
-
"code":
|
|
2722
|
+
"code": 6043,
|
|
2718
2723
|
"name": "feeCollectionLimitExceeded",
|
|
2719
2724
|
"msg": "Fee collection exceeds the configured limit"
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"code": 6044,
|
|
2728
|
+
"name": "missingVaultForPyIndex",
|
|
2729
|
+
"msg": "Vault account required to resolve py_index"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"code": 6045,
|
|
2733
|
+
"name": "invalidCurrentSpotPrice",
|
|
2734
|
+
"msg": "Current spot price must be positive"
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"code": 6046,
|
|
2738
|
+
"name": "invalidDepositSplitTick",
|
|
2739
|
+
"msg": "Deposit split tick must be positive and not exceed the SY slice start"
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
"code": 6047,
|
|
2743
|
+
"name": "swapAmountBelowMinimum",
|
|
2744
|
+
"msg": "Swap input and output must each be at least the minimum operation size"
|
|
2720
2745
|
}
|
|
2721
2746
|
],
|
|
2722
2747
|
"types": [
|
|
@@ -4436,9 +4461,6 @@ export type ExponentClmm = {
|
|
|
4436
4461
|
},
|
|
4437
4462
|
{
|
|
4438
4463
|
"name": "selfCpiStatus",
|
|
4439
|
-
"docs": [
|
|
4440
|
-
"Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
|
|
4441
|
-
],
|
|
4442
4464
|
"type": "u8"
|
|
4443
4465
|
},
|
|
4444
4466
|
{
|