@exponent-labs/exponent-clmm-idl 0.9.25 → 0.9.27
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/build/exponent_clmm.d.ts +233 -12
- package/build/exponent_clmm.json +234 -13
- package/build/index.d.ts +16 -2
- package/build/index.js +17 -7
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/exponent_clmm.json +234 -13
- package/src/exponent_clmm.ts +233 -12
package/build/exponent_clmm.d.ts
CHANGED
|
@@ -2685,18 +2685,38 @@ export type ExponentClmm = {
|
|
|
2685
2685
|
},
|
|
2686
2686
|
{
|
|
2687
2687
|
"code": 6036;
|
|
2688
|
-
"name": "
|
|
2689
|
-
"msg": "
|
|
2688
|
+
"name": "invalidSyExchangeRate";
|
|
2689
|
+
"msg": "SY exchange rate must be positive";
|
|
2690
2690
|
},
|
|
2691
2691
|
{
|
|
2692
2692
|
"code": 6037;
|
|
2693
|
-
"name": "
|
|
2694
|
-
"msg": "
|
|
2693
|
+
"name": "lpSupplyInvariantViolated";
|
|
2694
|
+
"msg": "LP supply does not match total position balances";
|
|
2695
2695
|
},
|
|
2696
2696
|
{
|
|
2697
2697
|
"code": 6038;
|
|
2698
|
-
"name": "
|
|
2699
|
-
"msg": "
|
|
2698
|
+
"name": "tickShareSupplyBelowMinimum";
|
|
2699
|
+
"msg": "Tick share supply must be zero or at least one";
|
|
2700
|
+
},
|
|
2701
|
+
{
|
|
2702
|
+
"code": 6039;
|
|
2703
|
+
"name": "tickImpliedApyAboveMaximum";
|
|
2704
|
+
"msg": "Tick implied APY exceeds the maximum";
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"code": 6040;
|
|
2708
|
+
"name": "invalidImpliedApy";
|
|
2709
|
+
"msg": "Implied APY is outside the supported range";
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
"code": 6041;
|
|
2713
|
+
"name": "impliedApyChangeExceedsLimit";
|
|
2714
|
+
"msg": "Implied APY change exceeds the configured limit";
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"code": 6042;
|
|
2718
|
+
"name": "feeCollectionLimitExceeded";
|
|
2719
|
+
"msg": "Fee collection exceeds the configured limit";
|
|
2700
2720
|
}
|
|
2701
2721
|
];
|
|
2702
2722
|
"types": [
|
|
@@ -3012,12 +3032,44 @@ export type ExponentClmm = {
|
|
|
3012
3032
|
"name": "tickSpace";
|
|
3013
3033
|
"type": "u32";
|
|
3014
3034
|
},
|
|
3035
|
+
{
|
|
3036
|
+
"name": "liquidityDepositCredit";
|
|
3037
|
+
"type": {
|
|
3038
|
+
"defined": {
|
|
3039
|
+
"name": "liquidityDepositCredit";
|
|
3040
|
+
};
|
|
3041
|
+
};
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"name": "lpSupplyAccounting";
|
|
3045
|
+
"type": {
|
|
3046
|
+
"defined": {
|
|
3047
|
+
"name": "lpSupplyAccounting";
|
|
3048
|
+
};
|
|
3049
|
+
};
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
"name": "impliedApyChangeLimits";
|
|
3053
|
+
"type": {
|
|
3054
|
+
"defined": {
|
|
3055
|
+
"name": "impliedApyChangeLimits";
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
"name": "feeCollectionLimits";
|
|
3061
|
+
"type": {
|
|
3062
|
+
"defined": {
|
|
3063
|
+
"name": "feeCollectionLimits";
|
|
3064
|
+
};
|
|
3065
|
+
};
|
|
3066
|
+
},
|
|
3015
3067
|
{
|
|
3016
3068
|
"name": "reserved";
|
|
3017
3069
|
"type": {
|
|
3018
3070
|
"array": [
|
|
3019
3071
|
"u8",
|
|
3020
|
-
|
|
3072
|
+
846
|
|
3021
3073
|
];
|
|
3022
3074
|
};
|
|
3023
3075
|
}
|
|
@@ -3564,6 +3616,117 @@ export type ExponentClmm = {
|
|
|
3564
3616
|
];
|
|
3565
3617
|
};
|
|
3566
3618
|
},
|
|
3619
|
+
{
|
|
3620
|
+
"name": "feeCollectionLimits";
|
|
3621
|
+
"type": {
|
|
3622
|
+
"kind": "struct";
|
|
3623
|
+
"fields": [
|
|
3624
|
+
{
|
|
3625
|
+
"name": "maxPtFees";
|
|
3626
|
+
"type": "u64";
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
"name": "maxSyFees";
|
|
3630
|
+
"type": "u64";
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"name": "refillDurationSeconds";
|
|
3634
|
+
"type": "u32";
|
|
3635
|
+
},
|
|
3636
|
+
{
|
|
3637
|
+
"name": "ptRemaining";
|
|
3638
|
+
"type": "u64";
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"name": "syRemaining";
|
|
3642
|
+
"type": "u64";
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"name": "lastUpdatedTimestamp";
|
|
3646
|
+
"type": "u32";
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"name": "ptRefillRemainder";
|
|
3650
|
+
"type": "u32";
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"name": "syRefillRemainder";
|
|
3654
|
+
"type": "u32";
|
|
3655
|
+
}
|
|
3656
|
+
];
|
|
3657
|
+
};
|
|
3658
|
+
},
|
|
3659
|
+
{
|
|
3660
|
+
"name": "impliedApyChangeLimits";
|
|
3661
|
+
"type": {
|
|
3662
|
+
"kind": "struct";
|
|
3663
|
+
"fields": [
|
|
3664
|
+
{
|
|
3665
|
+
"name": "maxImpliedApyChange";
|
|
3666
|
+
"docs": [
|
|
3667
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
3668
|
+
];
|
|
3669
|
+
"type": "u32";
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
"name": "windowDurationSeconds";
|
|
3673
|
+
"type": "u32";
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
"name": "epoch";
|
|
3677
|
+
"docs": [
|
|
3678
|
+
"Current fixed APY-limit epoch plus one. Zero marks uninitialized state."
|
|
3679
|
+
];
|
|
3680
|
+
"type": "u64";
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"name": "previousMin";
|
|
3684
|
+
"type": "u64";
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
"name": "previousMax";
|
|
3688
|
+
"type": "u64";
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
"name": "currentMin";
|
|
3692
|
+
"type": "u64";
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
"name": "currentMax";
|
|
3696
|
+
"type": "u64";
|
|
3697
|
+
}
|
|
3698
|
+
];
|
|
3699
|
+
};
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
"name": "liquidityDepositCredit";
|
|
3703
|
+
"type": {
|
|
3704
|
+
"kind": "struct";
|
|
3705
|
+
"fields": [
|
|
3706
|
+
{
|
|
3707
|
+
"name": "previous";
|
|
3708
|
+
"docs": [
|
|
3709
|
+
"Normalized deposit principal from the previous fixed withdrawal-limit epoch."
|
|
3710
|
+
];
|
|
3711
|
+
"type": "u128";
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
"name": "current";
|
|
3715
|
+
"docs": [
|
|
3716
|
+
"Normalized deposit principal from the current fixed withdrawal-limit epoch."
|
|
3717
|
+
];
|
|
3718
|
+
"type": "u128";
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
"name": "epoch";
|
|
3722
|
+
"docs": [
|
|
3723
|
+
"Current fixed withdrawal-limit epoch plus one. Zero marks uninitialized state."
|
|
3724
|
+
];
|
|
3725
|
+
"type": "u64";
|
|
3726
|
+
}
|
|
3727
|
+
];
|
|
3728
|
+
};
|
|
3729
|
+
},
|
|
3567
3730
|
{
|
|
3568
3731
|
"name": "liquidityNetBalanceLimits";
|
|
3569
3732
|
"type": {
|
|
@@ -3734,6 +3897,30 @@ export type ExponentClmm = {
|
|
|
3734
3897
|
];
|
|
3735
3898
|
};
|
|
3736
3899
|
},
|
|
3900
|
+
{
|
|
3901
|
+
"name": "lpSupplyAccounting";
|
|
3902
|
+
"type": {
|
|
3903
|
+
"kind": "struct";
|
|
3904
|
+
"fields": [
|
|
3905
|
+
{
|
|
3906
|
+
"name": "totalPositionBalance";
|
|
3907
|
+
"type": "u64";
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"name": "tickCrossingLiquidityDelta";
|
|
3911
|
+
"type": "i128";
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
"name": "positionCrossingLiquidityDelta";
|
|
3915
|
+
"type": "i128";
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
"name": "initialized";
|
|
3919
|
+
"type": "bool";
|
|
3920
|
+
}
|
|
3921
|
+
];
|
|
3922
|
+
};
|
|
3923
|
+
},
|
|
3737
3924
|
{
|
|
3738
3925
|
"name": "marketAccrueEmissionEvent";
|
|
3739
3926
|
"type": {
|
|
@@ -3897,6 +4084,39 @@ export type ExponentClmm = {
|
|
|
3897
4084
|
"fields": [
|
|
3898
4085
|
"u32"
|
|
3899
4086
|
];
|
|
4087
|
+
},
|
|
4088
|
+
{
|
|
4089
|
+
"name": "changeImpliedApyChangeLimits";
|
|
4090
|
+
"fields": [
|
|
4091
|
+
{
|
|
4092
|
+
"name": "maxImpliedApyChange";
|
|
4093
|
+
"docs": [
|
|
4094
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
4095
|
+
];
|
|
4096
|
+
"type": "u32";
|
|
4097
|
+
},
|
|
4098
|
+
{
|
|
4099
|
+
"name": "windowDurationSeconds";
|
|
4100
|
+
"type": "u32";
|
|
4101
|
+
}
|
|
4102
|
+
];
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
"name": "changeFeeCollectionLimits";
|
|
4106
|
+
"fields": [
|
|
4107
|
+
{
|
|
4108
|
+
"name": "maxPtFees";
|
|
4109
|
+
"type": "u64";
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
"name": "maxSyFees";
|
|
4113
|
+
"type": "u64";
|
|
4114
|
+
},
|
|
4115
|
+
{
|
|
4116
|
+
"name": "refillDurationSeconds";
|
|
4117
|
+
"type": "u32";
|
|
4118
|
+
}
|
|
4119
|
+
];
|
|
3900
4120
|
}
|
|
3901
4121
|
];
|
|
3902
4122
|
};
|
|
@@ -4216,6 +4436,9 @@ export type ExponentClmm = {
|
|
|
4216
4436
|
},
|
|
4217
4437
|
{
|
|
4218
4438
|
"name": "selfCpiStatus";
|
|
4439
|
+
"docs": [
|
|
4440
|
+
"Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
|
|
4441
|
+
];
|
|
4219
4442
|
"type": "u8";
|
|
4220
4443
|
},
|
|
4221
4444
|
{
|
|
@@ -5137,7 +5360,7 @@ export type ExponentClmm = {
|
|
|
5137
5360
|
"name": "lastSeenSyExchangeRate";
|
|
5138
5361
|
"docs": [
|
|
5139
5362
|
"Last seen SY exchange rate",
|
|
5140
|
-
"This continues to be updated after maturity for
|
|
5363
|
+
"This continues to be updated even after vault maturity to track SY appreciation for treasury collection"
|
|
5141
5364
|
];
|
|
5142
5365
|
"type": {
|
|
5143
5366
|
"defined": {
|
|
@@ -5148,7 +5371,7 @@ export type ExponentClmm = {
|
|
|
5148
5371
|
{
|
|
5149
5372
|
"name": "allTimeHighSyExchangeRate";
|
|
5150
5373
|
"docs": [
|
|
5151
|
-
"This is the all time high exchange rate for SY
|
|
5374
|
+
"This is the all time high exchange rate for SY"
|
|
5152
5375
|
];
|
|
5153
5376
|
"type": {
|
|
5154
5377
|
"defined": {
|
|
@@ -5159,9 +5382,7 @@ export type ExponentClmm = {
|
|
|
5159
5382
|
{
|
|
5160
5383
|
"name": "finalSyExchangeRate";
|
|
5161
5384
|
"docs": [
|
|
5162
|
-
"
|
|
5163
|
-
"This is the highest observed SY exchange rate while the vault is active,",
|
|
5164
|
-
"not necessarily the live exchange rate at the last pre-expiry update."
|
|
5385
|
+
"This is the exchange rate for SY when the vault expires"
|
|
5165
5386
|
];
|
|
5166
5387
|
"type": {
|
|
5167
5388
|
"defined": {
|
package/build/exponent_clmm.json
CHANGED
|
@@ -2679,18 +2679,38 @@
|
|
|
2679
2679
|
},
|
|
2680
2680
|
{
|
|
2681
2681
|
"code": 6036,
|
|
2682
|
-
"name": "
|
|
2683
|
-
"msg": "
|
|
2682
|
+
"name": "InvalidSyExchangeRate",
|
|
2683
|
+
"msg": "SY exchange rate must be positive"
|
|
2684
2684
|
},
|
|
2685
2685
|
{
|
|
2686
2686
|
"code": 6037,
|
|
2687
|
-
"name": "
|
|
2688
|
-
"msg": "
|
|
2687
|
+
"name": "LpSupplyInvariantViolated",
|
|
2688
|
+
"msg": "LP supply does not match total position balances"
|
|
2689
2689
|
},
|
|
2690
2690
|
{
|
|
2691
2691
|
"code": 6038,
|
|
2692
|
-
"name": "
|
|
2693
|
-
"msg": "
|
|
2692
|
+
"name": "TickShareSupplyBelowMinimum",
|
|
2693
|
+
"msg": "Tick share supply must be zero or at least one"
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"code": 6039,
|
|
2697
|
+
"name": "TickImpliedApyAboveMaximum",
|
|
2698
|
+
"msg": "Tick implied APY exceeds the maximum"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"code": 6040,
|
|
2702
|
+
"name": "InvalidImpliedApy",
|
|
2703
|
+
"msg": "Implied APY is outside the supported range"
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"code": 6041,
|
|
2707
|
+
"name": "ImpliedApyChangeExceedsLimit",
|
|
2708
|
+
"msg": "Implied APY change exceeds the configured limit"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
"code": 6042,
|
|
2712
|
+
"name": "FeeCollectionLimitExceeded",
|
|
2713
|
+
"msg": "Fee collection exceeds the configured limit"
|
|
2694
2714
|
}
|
|
2695
2715
|
],
|
|
2696
2716
|
"types": [
|
|
@@ -3006,12 +3026,44 @@
|
|
|
3006
3026
|
"name": "tick_space",
|
|
3007
3027
|
"type": "u32"
|
|
3008
3028
|
},
|
|
3029
|
+
{
|
|
3030
|
+
"name": "liquidity_deposit_credit",
|
|
3031
|
+
"type": {
|
|
3032
|
+
"defined": {
|
|
3033
|
+
"name": "LiquidityDepositCredit"
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"name": "lp_supply_accounting",
|
|
3039
|
+
"type": {
|
|
3040
|
+
"defined": {
|
|
3041
|
+
"name": "LpSupplyAccounting"
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"name": "implied_apy_change_limits",
|
|
3047
|
+
"type": {
|
|
3048
|
+
"defined": {
|
|
3049
|
+
"name": "ImpliedApyChangeLimits"
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
{
|
|
3054
|
+
"name": "fee_collection_limits",
|
|
3055
|
+
"type": {
|
|
3056
|
+
"defined": {
|
|
3057
|
+
"name": "FeeCollectionLimits"
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
},
|
|
3009
3061
|
{
|
|
3010
3062
|
"name": "_reserved",
|
|
3011
3063
|
"type": {
|
|
3012
3064
|
"array": [
|
|
3013
3065
|
"u8",
|
|
3014
|
-
|
|
3066
|
+
846
|
|
3015
3067
|
]
|
|
3016
3068
|
}
|
|
3017
3069
|
}
|
|
@@ -3558,6 +3610,117 @@
|
|
|
3558
3610
|
]
|
|
3559
3611
|
}
|
|
3560
3612
|
},
|
|
3613
|
+
{
|
|
3614
|
+
"name": "FeeCollectionLimits",
|
|
3615
|
+
"type": {
|
|
3616
|
+
"kind": "struct",
|
|
3617
|
+
"fields": [
|
|
3618
|
+
{
|
|
3619
|
+
"name": "max_pt_fees",
|
|
3620
|
+
"type": "u64"
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
"name": "max_sy_fees",
|
|
3624
|
+
"type": "u64"
|
|
3625
|
+
},
|
|
3626
|
+
{
|
|
3627
|
+
"name": "refill_duration_seconds",
|
|
3628
|
+
"type": "u32"
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
"name": "pt_remaining",
|
|
3632
|
+
"type": "u64"
|
|
3633
|
+
},
|
|
3634
|
+
{
|
|
3635
|
+
"name": "sy_remaining",
|
|
3636
|
+
"type": "u64"
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
"name": "last_updated_timestamp",
|
|
3640
|
+
"type": "u32"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"name": "pt_refill_remainder",
|
|
3644
|
+
"type": "u32"
|
|
3645
|
+
},
|
|
3646
|
+
{
|
|
3647
|
+
"name": "sy_refill_remainder",
|
|
3648
|
+
"type": "u32"
|
|
3649
|
+
}
|
|
3650
|
+
]
|
|
3651
|
+
}
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"name": "ImpliedApyChangeLimits",
|
|
3655
|
+
"type": {
|
|
3656
|
+
"kind": "struct",
|
|
3657
|
+
"fields": [
|
|
3658
|
+
{
|
|
3659
|
+
"name": "max_implied_apy_change",
|
|
3660
|
+
"docs": [
|
|
3661
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
3662
|
+
],
|
|
3663
|
+
"type": "u32"
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
"name": "window_duration_seconds",
|
|
3667
|
+
"type": "u32"
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"name": "epoch",
|
|
3671
|
+
"docs": [
|
|
3672
|
+
"Current fixed APY-limit epoch plus one. Zero marks uninitialized state."
|
|
3673
|
+
],
|
|
3674
|
+
"type": "u64"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"name": "previous_min",
|
|
3678
|
+
"type": "u64"
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
"name": "previous_max",
|
|
3682
|
+
"type": "u64"
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "current_min",
|
|
3686
|
+
"type": "u64"
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"name": "current_max",
|
|
3690
|
+
"type": "u64"
|
|
3691
|
+
}
|
|
3692
|
+
]
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
"name": "LiquidityDepositCredit",
|
|
3697
|
+
"type": {
|
|
3698
|
+
"kind": "struct",
|
|
3699
|
+
"fields": [
|
|
3700
|
+
{
|
|
3701
|
+
"name": "previous",
|
|
3702
|
+
"docs": [
|
|
3703
|
+
"Normalized deposit principal from the previous fixed withdrawal-limit epoch."
|
|
3704
|
+
],
|
|
3705
|
+
"type": "u128"
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
"name": "current",
|
|
3709
|
+
"docs": [
|
|
3710
|
+
"Normalized deposit principal from the current fixed withdrawal-limit epoch."
|
|
3711
|
+
],
|
|
3712
|
+
"type": "u128"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"name": "epoch",
|
|
3716
|
+
"docs": [
|
|
3717
|
+
"Current fixed withdrawal-limit epoch plus one. Zero marks uninitialized state."
|
|
3718
|
+
],
|
|
3719
|
+
"type": "u64"
|
|
3720
|
+
}
|
|
3721
|
+
]
|
|
3722
|
+
}
|
|
3723
|
+
},
|
|
3561
3724
|
{
|
|
3562
3725
|
"name": "LiquidityNetBalanceLimits",
|
|
3563
3726
|
"type": {
|
|
@@ -3728,6 +3891,30 @@
|
|
|
3728
3891
|
]
|
|
3729
3892
|
}
|
|
3730
3893
|
},
|
|
3894
|
+
{
|
|
3895
|
+
"name": "LpSupplyAccounting",
|
|
3896
|
+
"type": {
|
|
3897
|
+
"kind": "struct",
|
|
3898
|
+
"fields": [
|
|
3899
|
+
{
|
|
3900
|
+
"name": "total_position_balance",
|
|
3901
|
+
"type": "u64"
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
"name": "tick_crossing_liquidity_delta",
|
|
3905
|
+
"type": "i128"
|
|
3906
|
+
},
|
|
3907
|
+
{
|
|
3908
|
+
"name": "position_crossing_liquidity_delta",
|
|
3909
|
+
"type": "i128"
|
|
3910
|
+
},
|
|
3911
|
+
{
|
|
3912
|
+
"name": "initialized",
|
|
3913
|
+
"type": "bool"
|
|
3914
|
+
}
|
|
3915
|
+
]
|
|
3916
|
+
}
|
|
3917
|
+
},
|
|
3731
3918
|
{
|
|
3732
3919
|
"name": "MarketAccrueEmissionEvent",
|
|
3733
3920
|
"type": {
|
|
@@ -3891,6 +4078,39 @@
|
|
|
3891
4078
|
"fields": [
|
|
3892
4079
|
"u32"
|
|
3893
4080
|
]
|
|
4081
|
+
},
|
|
4082
|
+
{
|
|
4083
|
+
"name": "ChangeImpliedApyChangeLimits",
|
|
4084
|
+
"fields": [
|
|
4085
|
+
{
|
|
4086
|
+
"name": "max_implied_apy_change",
|
|
4087
|
+
"docs": [
|
|
4088
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
4089
|
+
],
|
|
4090
|
+
"type": "u32"
|
|
4091
|
+
},
|
|
4092
|
+
{
|
|
4093
|
+
"name": "window_duration_seconds",
|
|
4094
|
+
"type": "u32"
|
|
4095
|
+
}
|
|
4096
|
+
]
|
|
4097
|
+
},
|
|
4098
|
+
{
|
|
4099
|
+
"name": "ChangeFeeCollectionLimits",
|
|
4100
|
+
"fields": [
|
|
4101
|
+
{
|
|
4102
|
+
"name": "max_pt_fees",
|
|
4103
|
+
"type": "u64"
|
|
4104
|
+
},
|
|
4105
|
+
{
|
|
4106
|
+
"name": "max_sy_fees",
|
|
4107
|
+
"type": "u64"
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
"name": "refill_duration_seconds",
|
|
4111
|
+
"type": "u32"
|
|
4112
|
+
}
|
|
4113
|
+
]
|
|
3894
4114
|
}
|
|
3895
4115
|
]
|
|
3896
4116
|
}
|
|
@@ -4209,7 +4429,10 @@
|
|
|
4209
4429
|
}
|
|
4210
4430
|
},
|
|
4211
4431
|
{
|
|
4212
|
-
"name": "
|
|
4432
|
+
"name": "_self_cpi_status",
|
|
4433
|
+
"docs": [
|
|
4434
|
+
"Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
|
|
4435
|
+
],
|
|
4213
4436
|
"type": "u8"
|
|
4214
4437
|
},
|
|
4215
4438
|
{
|
|
@@ -5131,7 +5354,7 @@
|
|
|
5131
5354
|
"name": "last_seen_sy_exchange_rate",
|
|
5132
5355
|
"docs": [
|
|
5133
5356
|
"Last seen SY exchange rate",
|
|
5134
|
-
"This continues to be updated after maturity for
|
|
5357
|
+
"This continues to be updated even after vault maturity to track SY appreciation for treasury collection"
|
|
5135
5358
|
],
|
|
5136
5359
|
"type": {
|
|
5137
5360
|
"defined": {
|
|
@@ -5142,7 +5365,7 @@
|
|
|
5142
5365
|
{
|
|
5143
5366
|
"name": "all_time_high_sy_exchange_rate",
|
|
5144
5367
|
"docs": [
|
|
5145
|
-
"This is the all time high exchange rate for SY
|
|
5368
|
+
"This is the all time high exchange rate for SY"
|
|
5146
5369
|
],
|
|
5147
5370
|
"type": {
|
|
5148
5371
|
"defined": {
|
|
@@ -5153,9 +5376,7 @@
|
|
|
5153
5376
|
{
|
|
5154
5377
|
"name": "final_sy_exchange_rate",
|
|
5155
5378
|
"docs": [
|
|
5156
|
-
"
|
|
5157
|
-
"This is the highest observed SY exchange rate while the vault is active,",
|
|
5158
|
-
"not necessarily the live exchange rate at the last pre-expiry update."
|
|
5379
|
+
"This is the exchange rate for SY when the vault expires"
|
|
5159
5380
|
],
|
|
5160
5381
|
"type": {
|
|
5161
5382
|
"defined": {
|
package/build/index.d.ts
CHANGED
|
@@ -368,10 +368,20 @@ export declare const IDL: {
|
|
|
368
368
|
name: string;
|
|
369
369
|
type: string;
|
|
370
370
|
docs?: undefined;
|
|
371
|
+
} | {
|
|
372
|
+
name: string;
|
|
373
|
+
type: {
|
|
374
|
+
defined: {
|
|
375
|
+
name: string;
|
|
376
|
+
};
|
|
377
|
+
array?: undefined;
|
|
378
|
+
};
|
|
379
|
+
docs?: undefined;
|
|
371
380
|
} | {
|
|
372
381
|
name: string;
|
|
373
382
|
type: {
|
|
374
383
|
array: (string | number)[];
|
|
384
|
+
defined?: undefined;
|
|
375
385
|
};
|
|
376
386
|
docs?: undefined;
|
|
377
387
|
})[];
|
|
@@ -456,11 +466,15 @@ export declare const IDL: {
|
|
|
456
466
|
}[];
|
|
457
467
|
} | {
|
|
458
468
|
name: string;
|
|
459
|
-
fields: {
|
|
469
|
+
fields: ({
|
|
460
470
|
name: string;
|
|
461
471
|
docs: string[];
|
|
462
472
|
type: string;
|
|
463
|
-
}
|
|
473
|
+
} | {
|
|
474
|
+
name: string;
|
|
475
|
+
type: string;
|
|
476
|
+
docs?: undefined;
|
|
477
|
+
})[];
|
|
464
478
|
})[];
|
|
465
479
|
fields?: undefined;
|
|
466
480
|
};
|
package/build/index.js
CHANGED
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.PROGRAM_ID = exports.IDL = void 0;
|
|
30
40
|
__exportStar(require("./exponent_clmm"), exports);
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,0DAA2C;AAC9B,QAAA,GAAG,GAAG,GAAG,CAAA;AACT,QAAA,UAAU,GAAU,GAAG,CAAC,OAAO,CAAA"}
|
package/package.json
CHANGED
package/src/exponent_clmm.json
CHANGED
|
@@ -2679,18 +2679,38 @@
|
|
|
2679
2679
|
},
|
|
2680
2680
|
{
|
|
2681
2681
|
"code": 6036,
|
|
2682
|
-
"name": "
|
|
2683
|
-
"msg": "
|
|
2682
|
+
"name": "InvalidSyExchangeRate",
|
|
2683
|
+
"msg": "SY exchange rate must be positive"
|
|
2684
2684
|
},
|
|
2685
2685
|
{
|
|
2686
2686
|
"code": 6037,
|
|
2687
|
-
"name": "
|
|
2688
|
-
"msg": "
|
|
2687
|
+
"name": "LpSupplyInvariantViolated",
|
|
2688
|
+
"msg": "LP supply does not match total position balances"
|
|
2689
2689
|
},
|
|
2690
2690
|
{
|
|
2691
2691
|
"code": 6038,
|
|
2692
|
-
"name": "
|
|
2693
|
-
"msg": "
|
|
2692
|
+
"name": "TickShareSupplyBelowMinimum",
|
|
2693
|
+
"msg": "Tick share supply must be zero or at least one"
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"code": 6039,
|
|
2697
|
+
"name": "TickImpliedApyAboveMaximum",
|
|
2698
|
+
"msg": "Tick implied APY exceeds the maximum"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"code": 6040,
|
|
2702
|
+
"name": "InvalidImpliedApy",
|
|
2703
|
+
"msg": "Implied APY is outside the supported range"
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"code": 6041,
|
|
2707
|
+
"name": "ImpliedApyChangeExceedsLimit",
|
|
2708
|
+
"msg": "Implied APY change exceeds the configured limit"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
"code": 6042,
|
|
2712
|
+
"name": "FeeCollectionLimitExceeded",
|
|
2713
|
+
"msg": "Fee collection exceeds the configured limit"
|
|
2694
2714
|
}
|
|
2695
2715
|
],
|
|
2696
2716
|
"types": [
|
|
@@ -3006,12 +3026,44 @@
|
|
|
3006
3026
|
"name": "tick_space",
|
|
3007
3027
|
"type": "u32"
|
|
3008
3028
|
},
|
|
3029
|
+
{
|
|
3030
|
+
"name": "liquidity_deposit_credit",
|
|
3031
|
+
"type": {
|
|
3032
|
+
"defined": {
|
|
3033
|
+
"name": "LiquidityDepositCredit"
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"name": "lp_supply_accounting",
|
|
3039
|
+
"type": {
|
|
3040
|
+
"defined": {
|
|
3041
|
+
"name": "LpSupplyAccounting"
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"name": "implied_apy_change_limits",
|
|
3047
|
+
"type": {
|
|
3048
|
+
"defined": {
|
|
3049
|
+
"name": "ImpliedApyChangeLimits"
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
{
|
|
3054
|
+
"name": "fee_collection_limits",
|
|
3055
|
+
"type": {
|
|
3056
|
+
"defined": {
|
|
3057
|
+
"name": "FeeCollectionLimits"
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
},
|
|
3009
3061
|
{
|
|
3010
3062
|
"name": "_reserved",
|
|
3011
3063
|
"type": {
|
|
3012
3064
|
"array": [
|
|
3013
3065
|
"u8",
|
|
3014
|
-
|
|
3066
|
+
846
|
|
3015
3067
|
]
|
|
3016
3068
|
}
|
|
3017
3069
|
}
|
|
@@ -3558,6 +3610,117 @@
|
|
|
3558
3610
|
]
|
|
3559
3611
|
}
|
|
3560
3612
|
},
|
|
3613
|
+
{
|
|
3614
|
+
"name": "FeeCollectionLimits",
|
|
3615
|
+
"type": {
|
|
3616
|
+
"kind": "struct",
|
|
3617
|
+
"fields": [
|
|
3618
|
+
{
|
|
3619
|
+
"name": "max_pt_fees",
|
|
3620
|
+
"type": "u64"
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
"name": "max_sy_fees",
|
|
3624
|
+
"type": "u64"
|
|
3625
|
+
},
|
|
3626
|
+
{
|
|
3627
|
+
"name": "refill_duration_seconds",
|
|
3628
|
+
"type": "u32"
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
"name": "pt_remaining",
|
|
3632
|
+
"type": "u64"
|
|
3633
|
+
},
|
|
3634
|
+
{
|
|
3635
|
+
"name": "sy_remaining",
|
|
3636
|
+
"type": "u64"
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
"name": "last_updated_timestamp",
|
|
3640
|
+
"type": "u32"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"name": "pt_refill_remainder",
|
|
3644
|
+
"type": "u32"
|
|
3645
|
+
},
|
|
3646
|
+
{
|
|
3647
|
+
"name": "sy_refill_remainder",
|
|
3648
|
+
"type": "u32"
|
|
3649
|
+
}
|
|
3650
|
+
]
|
|
3651
|
+
}
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"name": "ImpliedApyChangeLimits",
|
|
3655
|
+
"type": {
|
|
3656
|
+
"kind": "struct",
|
|
3657
|
+
"fields": [
|
|
3658
|
+
{
|
|
3659
|
+
"name": "max_implied_apy_change",
|
|
3660
|
+
"docs": [
|
|
3661
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
3662
|
+
],
|
|
3663
|
+
"type": "u32"
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
"name": "window_duration_seconds",
|
|
3667
|
+
"type": "u32"
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"name": "epoch",
|
|
3671
|
+
"docs": [
|
|
3672
|
+
"Current fixed APY-limit epoch plus one. Zero marks uninitialized state."
|
|
3673
|
+
],
|
|
3674
|
+
"type": "u64"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"name": "previous_min",
|
|
3678
|
+
"type": "u64"
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
"name": "previous_max",
|
|
3682
|
+
"type": "u64"
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "current_min",
|
|
3686
|
+
"type": "u64"
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"name": "current_max",
|
|
3690
|
+
"type": "u64"
|
|
3691
|
+
}
|
|
3692
|
+
]
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
"name": "LiquidityDepositCredit",
|
|
3697
|
+
"type": {
|
|
3698
|
+
"kind": "struct",
|
|
3699
|
+
"fields": [
|
|
3700
|
+
{
|
|
3701
|
+
"name": "previous",
|
|
3702
|
+
"docs": [
|
|
3703
|
+
"Normalized deposit principal from the previous fixed withdrawal-limit epoch."
|
|
3704
|
+
],
|
|
3705
|
+
"type": "u128"
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
"name": "current",
|
|
3709
|
+
"docs": [
|
|
3710
|
+
"Normalized deposit principal from the current fixed withdrawal-limit epoch."
|
|
3711
|
+
],
|
|
3712
|
+
"type": "u128"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"name": "epoch",
|
|
3716
|
+
"docs": [
|
|
3717
|
+
"Current fixed withdrawal-limit epoch plus one. Zero marks uninitialized state."
|
|
3718
|
+
],
|
|
3719
|
+
"type": "u64"
|
|
3720
|
+
}
|
|
3721
|
+
]
|
|
3722
|
+
}
|
|
3723
|
+
},
|
|
3561
3724
|
{
|
|
3562
3725
|
"name": "LiquidityNetBalanceLimits",
|
|
3563
3726
|
"type": {
|
|
@@ -3728,6 +3891,30 @@
|
|
|
3728
3891
|
]
|
|
3729
3892
|
}
|
|
3730
3893
|
},
|
|
3894
|
+
{
|
|
3895
|
+
"name": "LpSupplyAccounting",
|
|
3896
|
+
"type": {
|
|
3897
|
+
"kind": "struct",
|
|
3898
|
+
"fields": [
|
|
3899
|
+
{
|
|
3900
|
+
"name": "total_position_balance",
|
|
3901
|
+
"type": "u64"
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
"name": "tick_crossing_liquidity_delta",
|
|
3905
|
+
"type": "i128"
|
|
3906
|
+
},
|
|
3907
|
+
{
|
|
3908
|
+
"name": "position_crossing_liquidity_delta",
|
|
3909
|
+
"type": "i128"
|
|
3910
|
+
},
|
|
3911
|
+
{
|
|
3912
|
+
"name": "initialized",
|
|
3913
|
+
"type": "bool"
|
|
3914
|
+
}
|
|
3915
|
+
]
|
|
3916
|
+
}
|
|
3917
|
+
},
|
|
3731
3918
|
{
|
|
3732
3919
|
"name": "MarketAccrueEmissionEvent",
|
|
3733
3920
|
"type": {
|
|
@@ -3891,6 +4078,39 @@
|
|
|
3891
4078
|
"fields": [
|
|
3892
4079
|
"u32"
|
|
3893
4080
|
]
|
|
4081
|
+
},
|
|
4082
|
+
{
|
|
4083
|
+
"name": "ChangeImpliedApyChangeLimits",
|
|
4084
|
+
"fields": [
|
|
4085
|
+
{
|
|
4086
|
+
"name": "max_implied_apy_change",
|
|
4087
|
+
"docs": [
|
|
4088
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
4089
|
+
],
|
|
4090
|
+
"type": "u32"
|
|
4091
|
+
},
|
|
4092
|
+
{
|
|
4093
|
+
"name": "window_duration_seconds",
|
|
4094
|
+
"type": "u32"
|
|
4095
|
+
}
|
|
4096
|
+
]
|
|
4097
|
+
},
|
|
4098
|
+
{
|
|
4099
|
+
"name": "ChangeFeeCollectionLimits",
|
|
4100
|
+
"fields": [
|
|
4101
|
+
{
|
|
4102
|
+
"name": "max_pt_fees",
|
|
4103
|
+
"type": "u64"
|
|
4104
|
+
},
|
|
4105
|
+
{
|
|
4106
|
+
"name": "max_sy_fees",
|
|
4107
|
+
"type": "u64"
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
"name": "refill_duration_seconds",
|
|
4111
|
+
"type": "u32"
|
|
4112
|
+
}
|
|
4113
|
+
]
|
|
3894
4114
|
}
|
|
3895
4115
|
]
|
|
3896
4116
|
}
|
|
@@ -4209,7 +4429,10 @@
|
|
|
4209
4429
|
}
|
|
4210
4430
|
},
|
|
4211
4431
|
{
|
|
4212
|
-
"name": "
|
|
4432
|
+
"name": "_self_cpi_status",
|
|
4433
|
+
"docs": [
|
|
4434
|
+
"Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
|
|
4435
|
+
],
|
|
4213
4436
|
"type": "u8"
|
|
4214
4437
|
},
|
|
4215
4438
|
{
|
|
@@ -5131,7 +5354,7 @@
|
|
|
5131
5354
|
"name": "last_seen_sy_exchange_rate",
|
|
5132
5355
|
"docs": [
|
|
5133
5356
|
"Last seen SY exchange rate",
|
|
5134
|
-
"This continues to be updated after maturity for
|
|
5357
|
+
"This continues to be updated even after vault maturity to track SY appreciation for treasury collection"
|
|
5135
5358
|
],
|
|
5136
5359
|
"type": {
|
|
5137
5360
|
"defined": {
|
|
@@ -5142,7 +5365,7 @@
|
|
|
5142
5365
|
{
|
|
5143
5366
|
"name": "all_time_high_sy_exchange_rate",
|
|
5144
5367
|
"docs": [
|
|
5145
|
-
"This is the all time high exchange rate for SY
|
|
5368
|
+
"This is the all time high exchange rate for SY"
|
|
5146
5369
|
],
|
|
5147
5370
|
"type": {
|
|
5148
5371
|
"defined": {
|
|
@@ -5153,9 +5376,7 @@
|
|
|
5153
5376
|
{
|
|
5154
5377
|
"name": "final_sy_exchange_rate",
|
|
5155
5378
|
"docs": [
|
|
5156
|
-
"
|
|
5157
|
-
"This is the highest observed SY exchange rate while the vault is active,",
|
|
5158
|
-
"not necessarily the live exchange rate at the last pre-expiry update."
|
|
5379
|
+
"This is the exchange rate for SY when the vault expires"
|
|
5159
5380
|
],
|
|
5160
5381
|
"type": {
|
|
5161
5382
|
"defined": {
|
package/src/exponent_clmm.ts
CHANGED
|
@@ -2685,18 +2685,38 @@ export type ExponentClmm = {
|
|
|
2685
2685
|
},
|
|
2686
2686
|
{
|
|
2687
2687
|
"code": 6036,
|
|
2688
|
-
"name": "
|
|
2689
|
-
"msg": "
|
|
2688
|
+
"name": "invalidSyExchangeRate",
|
|
2689
|
+
"msg": "SY exchange rate must be positive"
|
|
2690
2690
|
},
|
|
2691
2691
|
{
|
|
2692
2692
|
"code": 6037,
|
|
2693
|
-
"name": "
|
|
2694
|
-
"msg": "
|
|
2693
|
+
"name": "lpSupplyInvariantViolated",
|
|
2694
|
+
"msg": "LP supply does not match total position balances"
|
|
2695
2695
|
},
|
|
2696
2696
|
{
|
|
2697
2697
|
"code": 6038,
|
|
2698
|
-
"name": "
|
|
2699
|
-
"msg": "
|
|
2698
|
+
"name": "tickShareSupplyBelowMinimum",
|
|
2699
|
+
"msg": "Tick share supply must be zero or at least one"
|
|
2700
|
+
},
|
|
2701
|
+
{
|
|
2702
|
+
"code": 6039,
|
|
2703
|
+
"name": "tickImpliedApyAboveMaximum",
|
|
2704
|
+
"msg": "Tick implied APY exceeds the maximum"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"code": 6040,
|
|
2708
|
+
"name": "invalidImpliedApy",
|
|
2709
|
+
"msg": "Implied APY is outside the supported range"
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
"code": 6041,
|
|
2713
|
+
"name": "impliedApyChangeExceedsLimit",
|
|
2714
|
+
"msg": "Implied APY change exceeds the configured limit"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"code": 6042,
|
|
2718
|
+
"name": "feeCollectionLimitExceeded",
|
|
2719
|
+
"msg": "Fee collection exceeds the configured limit"
|
|
2700
2720
|
}
|
|
2701
2721
|
],
|
|
2702
2722
|
"types": [
|
|
@@ -3012,12 +3032,44 @@ export type ExponentClmm = {
|
|
|
3012
3032
|
"name": "tickSpace",
|
|
3013
3033
|
"type": "u32"
|
|
3014
3034
|
},
|
|
3035
|
+
{
|
|
3036
|
+
"name": "liquidityDepositCredit",
|
|
3037
|
+
"type": {
|
|
3038
|
+
"defined": {
|
|
3039
|
+
"name": "liquidityDepositCredit"
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"name": "lpSupplyAccounting",
|
|
3045
|
+
"type": {
|
|
3046
|
+
"defined": {
|
|
3047
|
+
"name": "lpSupplyAccounting"
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
"name": "impliedApyChangeLimits",
|
|
3053
|
+
"type": {
|
|
3054
|
+
"defined": {
|
|
3055
|
+
"name": "impliedApyChangeLimits"
|
|
3056
|
+
}
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
"name": "feeCollectionLimits",
|
|
3061
|
+
"type": {
|
|
3062
|
+
"defined": {
|
|
3063
|
+
"name": "feeCollectionLimits"
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
},
|
|
3015
3067
|
{
|
|
3016
3068
|
"name": "reserved",
|
|
3017
3069
|
"type": {
|
|
3018
3070
|
"array": [
|
|
3019
3071
|
"u8",
|
|
3020
|
-
|
|
3072
|
+
846
|
|
3021
3073
|
]
|
|
3022
3074
|
}
|
|
3023
3075
|
}
|
|
@@ -3564,6 +3616,117 @@ export type ExponentClmm = {
|
|
|
3564
3616
|
]
|
|
3565
3617
|
}
|
|
3566
3618
|
},
|
|
3619
|
+
{
|
|
3620
|
+
"name": "feeCollectionLimits",
|
|
3621
|
+
"type": {
|
|
3622
|
+
"kind": "struct",
|
|
3623
|
+
"fields": [
|
|
3624
|
+
{
|
|
3625
|
+
"name": "maxPtFees",
|
|
3626
|
+
"type": "u64"
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
"name": "maxSyFees",
|
|
3630
|
+
"type": "u64"
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"name": "refillDurationSeconds",
|
|
3634
|
+
"type": "u32"
|
|
3635
|
+
},
|
|
3636
|
+
{
|
|
3637
|
+
"name": "ptRemaining",
|
|
3638
|
+
"type": "u64"
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"name": "syRemaining",
|
|
3642
|
+
"type": "u64"
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"name": "lastUpdatedTimestamp",
|
|
3646
|
+
"type": "u32"
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"name": "ptRefillRemainder",
|
|
3650
|
+
"type": "u32"
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"name": "syRefillRemainder",
|
|
3654
|
+
"type": "u32"
|
|
3655
|
+
}
|
|
3656
|
+
]
|
|
3657
|
+
}
|
|
3658
|
+
},
|
|
3659
|
+
{
|
|
3660
|
+
"name": "impliedApyChangeLimits",
|
|
3661
|
+
"type": {
|
|
3662
|
+
"kind": "struct",
|
|
3663
|
+
"fields": [
|
|
3664
|
+
{
|
|
3665
|
+
"name": "maxImpliedApyChange",
|
|
3666
|
+
"docs": [
|
|
3667
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
3668
|
+
],
|
|
3669
|
+
"type": "u32"
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
"name": "windowDurationSeconds",
|
|
3673
|
+
"type": "u32"
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
"name": "epoch",
|
|
3677
|
+
"docs": [
|
|
3678
|
+
"Current fixed APY-limit epoch plus one. Zero marks uninitialized state."
|
|
3679
|
+
],
|
|
3680
|
+
"type": "u64"
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"name": "previousMin",
|
|
3684
|
+
"type": "u64"
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
"name": "previousMax",
|
|
3688
|
+
"type": "u64"
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
"name": "currentMin",
|
|
3692
|
+
"type": "u64"
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
"name": "currentMax",
|
|
3696
|
+
"type": "u64"
|
|
3697
|
+
}
|
|
3698
|
+
]
|
|
3699
|
+
}
|
|
3700
|
+
},
|
|
3701
|
+
{
|
|
3702
|
+
"name": "liquidityDepositCredit",
|
|
3703
|
+
"type": {
|
|
3704
|
+
"kind": "struct",
|
|
3705
|
+
"fields": [
|
|
3706
|
+
{
|
|
3707
|
+
"name": "previous",
|
|
3708
|
+
"docs": [
|
|
3709
|
+
"Normalized deposit principal from the previous fixed withdrawal-limit epoch."
|
|
3710
|
+
],
|
|
3711
|
+
"type": "u128"
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
"name": "current",
|
|
3715
|
+
"docs": [
|
|
3716
|
+
"Normalized deposit principal from the current fixed withdrawal-limit epoch."
|
|
3717
|
+
],
|
|
3718
|
+
"type": "u128"
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
"name": "epoch",
|
|
3722
|
+
"docs": [
|
|
3723
|
+
"Current fixed withdrawal-limit epoch plus one. Zero marks uninitialized state."
|
|
3724
|
+
],
|
|
3725
|
+
"type": "u64"
|
|
3726
|
+
}
|
|
3727
|
+
]
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3567
3730
|
{
|
|
3568
3731
|
"name": "liquidityNetBalanceLimits",
|
|
3569
3732
|
"type": {
|
|
@@ -3734,6 +3897,30 @@ export type ExponentClmm = {
|
|
|
3734
3897
|
]
|
|
3735
3898
|
}
|
|
3736
3899
|
},
|
|
3900
|
+
{
|
|
3901
|
+
"name": "lpSupplyAccounting",
|
|
3902
|
+
"type": {
|
|
3903
|
+
"kind": "struct",
|
|
3904
|
+
"fields": [
|
|
3905
|
+
{
|
|
3906
|
+
"name": "totalPositionBalance",
|
|
3907
|
+
"type": "u64"
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"name": "tickCrossingLiquidityDelta",
|
|
3911
|
+
"type": "i128"
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
"name": "positionCrossingLiquidityDelta",
|
|
3915
|
+
"type": "i128"
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
"name": "initialized",
|
|
3919
|
+
"type": "bool"
|
|
3920
|
+
}
|
|
3921
|
+
]
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3737
3924
|
{
|
|
3738
3925
|
"name": "marketAccrueEmissionEvent",
|
|
3739
3926
|
"type": {
|
|
@@ -3897,6 +4084,39 @@ export type ExponentClmm = {
|
|
|
3897
4084
|
"fields": [
|
|
3898
4085
|
"u32"
|
|
3899
4086
|
]
|
|
4087
|
+
},
|
|
4088
|
+
{
|
|
4089
|
+
"name": "changeImpliedApyChangeLimits",
|
|
4090
|
+
"fields": [
|
|
4091
|
+
{
|
|
4092
|
+
"name": "maxImpliedApyChange",
|
|
4093
|
+
"docs": [
|
|
4094
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
4095
|
+
],
|
|
4096
|
+
"type": "u32"
|
|
4097
|
+
},
|
|
4098
|
+
{
|
|
4099
|
+
"name": "windowDurationSeconds",
|
|
4100
|
+
"type": "u32"
|
|
4101
|
+
}
|
|
4102
|
+
]
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
"name": "changeFeeCollectionLimits",
|
|
4106
|
+
"fields": [
|
|
4107
|
+
{
|
|
4108
|
+
"name": "maxPtFees",
|
|
4109
|
+
"type": "u64"
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
"name": "maxSyFees",
|
|
4113
|
+
"type": "u64"
|
|
4114
|
+
},
|
|
4115
|
+
{
|
|
4116
|
+
"name": "refillDurationSeconds",
|
|
4117
|
+
"type": "u32"
|
|
4118
|
+
}
|
|
4119
|
+
]
|
|
3900
4120
|
}
|
|
3901
4121
|
]
|
|
3902
4122
|
}
|
|
@@ -4216,6 +4436,9 @@ export type ExponentClmm = {
|
|
|
4216
4436
|
},
|
|
4217
4437
|
{
|
|
4218
4438
|
"name": "selfCpiStatus",
|
|
4439
|
+
"docs": [
|
|
4440
|
+
"Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
|
|
4441
|
+
],
|
|
4219
4442
|
"type": "u8"
|
|
4220
4443
|
},
|
|
4221
4444
|
{
|
|
@@ -5137,7 +5360,7 @@ export type ExponentClmm = {
|
|
|
5137
5360
|
"name": "lastSeenSyExchangeRate",
|
|
5138
5361
|
"docs": [
|
|
5139
5362
|
"Last seen SY exchange rate",
|
|
5140
|
-
"This continues to be updated after maturity for
|
|
5363
|
+
"This continues to be updated even after vault maturity to track SY appreciation for treasury collection"
|
|
5141
5364
|
],
|
|
5142
5365
|
"type": {
|
|
5143
5366
|
"defined": {
|
|
@@ -5148,7 +5371,7 @@ export type ExponentClmm = {
|
|
|
5148
5371
|
{
|
|
5149
5372
|
"name": "allTimeHighSyExchangeRate",
|
|
5150
5373
|
"docs": [
|
|
5151
|
-
"This is the all time high exchange rate for SY
|
|
5374
|
+
"This is the all time high exchange rate for SY"
|
|
5152
5375
|
],
|
|
5153
5376
|
"type": {
|
|
5154
5377
|
"defined": {
|
|
@@ -5159,9 +5382,7 @@ export type ExponentClmm = {
|
|
|
5159
5382
|
{
|
|
5160
5383
|
"name": "finalSyExchangeRate",
|
|
5161
5384
|
"docs": [
|
|
5162
|
-
"
|
|
5163
|
-
"This is the highest observed SY exchange rate while the vault is active,",
|
|
5164
|
-
"not necessarily the live exchange rate at the last pre-expiry update."
|
|
5385
|
+
"This is the exchange rate for SY when the vault expires"
|
|
5165
5386
|
],
|
|
5166
5387
|
"type": {
|
|
5167
5388
|
"defined": {
|