@exponent-labs/exponent-clmm-idl 0.9.24 → 0.9.25
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 +83 -9
- package/build/exponent_clmm.json +83 -9
- package/build/index.d.ts +1 -0
- package/build/index.js +7 -17
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/exponent_clmm.json +83 -9
- package/src/exponent_clmm.ts +83 -9
package/build/exponent_clmm.d.ts
CHANGED
|
@@ -1219,7 +1219,7 @@ export type ExponentClmm = {
|
|
|
1219
1219
|
];
|
|
1220
1220
|
"returns": {
|
|
1221
1221
|
"defined": {
|
|
1222
|
-
"name": "
|
|
1222
|
+
"name": "tradePtReturnData";
|
|
1223
1223
|
};
|
|
1224
1224
|
};
|
|
1225
1225
|
},
|
|
@@ -1325,7 +1325,7 @@ export type ExponentClmm = {
|
|
|
1325
1325
|
];
|
|
1326
1326
|
"returns": {
|
|
1327
1327
|
"defined": {
|
|
1328
|
-
"name": "
|
|
1328
|
+
"name": "tradePtReturnData";
|
|
1329
1329
|
};
|
|
1330
1330
|
};
|
|
1331
1331
|
},
|
|
@@ -2371,6 +2371,19 @@ export type ExponentClmm = {
|
|
|
2371
2371
|
174
|
|
2372
2372
|
];
|
|
2373
2373
|
},
|
|
2374
|
+
{
|
|
2375
|
+
"name": "tradePtReturnData";
|
|
2376
|
+
"discriminator": [
|
|
2377
|
+
26,
|
|
2378
|
+
64,
|
|
2379
|
+
30,
|
|
2380
|
+
82,
|
|
2381
|
+
98,
|
|
2382
|
+
163,
|
|
2383
|
+
184,
|
|
2384
|
+
31
|
|
2385
|
+
];
|
|
2386
|
+
},
|
|
2374
2387
|
{
|
|
2375
2388
|
"name": "withdrawLiquidityEvent";
|
|
2376
2389
|
"discriminator": [
|
|
@@ -2669,6 +2682,21 @@ export type ExponentClmm = {
|
|
|
2669
2682
|
"code": 6035;
|
|
2670
2683
|
"name": "crossingEqualizationInvariantViolated";
|
|
2671
2684
|
"msg": "Crossing equalization invariants were violated";
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"code": 6036;
|
|
2688
|
+
"name": "missingVaultForPyIndex";
|
|
2689
|
+
"msg": "Vault account required to resolve py_index";
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"code": 6037;
|
|
2693
|
+
"name": "invalidSyExchangeRate";
|
|
2694
|
+
"msg": "SY exchange rate must be positive";
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"code": 6038;
|
|
2698
|
+
"name": "crossingLiquidityWouldRoundToZero";
|
|
2699
|
+
"msg": "Partial withdrawal would round crossing liquidity to zero; withdraw the full position instead";
|
|
2672
2700
|
}
|
|
2673
2701
|
];
|
|
2674
2702
|
"types": [
|
|
@@ -2989,7 +3017,7 @@ export type ExponentClmm = {
|
|
|
2989
3017
|
"type": {
|
|
2990
3018
|
"array": [
|
|
2991
3019
|
"u8",
|
|
2992
|
-
|
|
3020
|
+
1023
|
|
2993
3021
|
];
|
|
2994
3022
|
};
|
|
2995
3023
|
}
|
|
@@ -3543,29 +3571,44 @@ export type ExponentClmm = {
|
|
|
3543
3571
|
"fields": [
|
|
3544
3572
|
{
|
|
3545
3573
|
"name": "windowStartTimestamp";
|
|
3574
|
+
"docs": [
|
|
3575
|
+
"Last timestamp at which the withdrawal bucket was evaluated.",
|
|
3576
|
+
"",
|
|
3577
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3578
|
+
];
|
|
3546
3579
|
"type": "u32";
|
|
3547
3580
|
},
|
|
3548
3581
|
{
|
|
3549
3582
|
"name": "windowStartNetBalance";
|
|
3583
|
+
"docs": [
|
|
3584
|
+
"Remaining normalized PT-equivalent withdrawal capacity.",
|
|
3585
|
+
"",
|
|
3586
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3587
|
+
];
|
|
3550
3588
|
"type": "u64";
|
|
3551
3589
|
},
|
|
3552
3590
|
{
|
|
3553
3591
|
"name": "maxNetBalanceChangeNegativePercentage";
|
|
3554
3592
|
"docs": [
|
|
3555
|
-
"Maximum
|
|
3593
|
+
"Maximum withdrawal capacity in basis points of the market's normalized value."
|
|
3556
3594
|
];
|
|
3557
3595
|
"type": "u16";
|
|
3558
3596
|
},
|
|
3559
3597
|
{
|
|
3560
3598
|
"name": "maxNetBalanceChangePositivePercentage";
|
|
3561
3599
|
"docs": [
|
|
3562
|
-
"
|
|
3563
|
-
"
|
|
3600
|
+
"Fractional refill numerator carried between withdrawals.",
|
|
3601
|
+
"",
|
|
3602
|
+
"This prevents the realized refill rate from depending on how frequently withdrawals occur.",
|
|
3603
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3564
3604
|
];
|
|
3565
3605
|
"type": "u32";
|
|
3566
3606
|
},
|
|
3567
3607
|
{
|
|
3568
3608
|
"name": "windowDurationSeconds";
|
|
3609
|
+
"docs": [
|
|
3610
|
+
"Time required for an empty withdrawal bucket to refill completely."
|
|
3611
|
+
];
|
|
3569
3612
|
"type": "u32";
|
|
3570
3613
|
}
|
|
3571
3614
|
];
|
|
@@ -3810,14 +3853,23 @@ export type ExponentClmm = {
|
|
|
3810
3853
|
"fields": [
|
|
3811
3854
|
{
|
|
3812
3855
|
"name": "maxNetBalanceChangeNegativePercentage";
|
|
3856
|
+
"docs": [
|
|
3857
|
+
"Maximum normalized gross withdrawal, in basis points of market value."
|
|
3858
|
+
];
|
|
3813
3859
|
"type": "u16";
|
|
3814
3860
|
},
|
|
3815
3861
|
{
|
|
3816
3862
|
"name": "maxNetBalanceChangePositivePercentage";
|
|
3863
|
+
"docs": [
|
|
3864
|
+
"Retained for instruction compatibility. The token-bucket limiter does not use it."
|
|
3865
|
+
];
|
|
3817
3866
|
"type": "u32";
|
|
3818
3867
|
},
|
|
3819
3868
|
{
|
|
3820
3869
|
"name": "windowDurationSeconds";
|
|
3870
|
+
"docs": [
|
|
3871
|
+
"Seconds required for an empty withdrawal bucket to refill completely."
|
|
3872
|
+
];
|
|
3821
3873
|
"type": "u32";
|
|
3822
3874
|
}
|
|
3823
3875
|
];
|
|
@@ -4162,6 +4214,10 @@ export type ExponentClmm = {
|
|
|
4162
4214
|
};
|
|
4163
4215
|
};
|
|
4164
4216
|
},
|
|
4217
|
+
{
|
|
4218
|
+
"name": "selfCpiStatus";
|
|
4219
|
+
"type": "u8";
|
|
4220
|
+
},
|
|
4165
4221
|
{
|
|
4166
4222
|
"name": "financials";
|
|
4167
4223
|
"type": {
|
|
@@ -4958,6 +5014,22 @@ export type ExponentClmm = {
|
|
|
4958
5014
|
];
|
|
4959
5015
|
};
|
|
4960
5016
|
},
|
|
5017
|
+
{
|
|
5018
|
+
"name": "tradePtReturnData";
|
|
5019
|
+
"type": {
|
|
5020
|
+
"kind": "struct";
|
|
5021
|
+
"fields": [
|
|
5022
|
+
{
|
|
5023
|
+
"name": "amountIn";
|
|
5024
|
+
"type": "u64";
|
|
5025
|
+
},
|
|
5026
|
+
{
|
|
5027
|
+
"name": "amountOut";
|
|
5028
|
+
"type": "u64";
|
|
5029
|
+
}
|
|
5030
|
+
];
|
|
5031
|
+
};
|
|
5032
|
+
},
|
|
4961
5033
|
{
|
|
4962
5034
|
"name": "vault";
|
|
4963
5035
|
"type": {
|
|
@@ -5065,7 +5137,7 @@ export type ExponentClmm = {
|
|
|
5065
5137
|
"name": "lastSeenSyExchangeRate";
|
|
5066
5138
|
"docs": [
|
|
5067
5139
|
"Last seen SY exchange rate",
|
|
5068
|
-
"This continues to be updated
|
|
5140
|
+
"This continues to be updated after maturity for PT redemption"
|
|
5069
5141
|
];
|
|
5070
5142
|
"type": {
|
|
5071
5143
|
"defined": {
|
|
@@ -5076,7 +5148,7 @@ export type ExponentClmm = {
|
|
|
5076
5148
|
{
|
|
5077
5149
|
"name": "allTimeHighSyExchangeRate";
|
|
5078
5150
|
"docs": [
|
|
5079
|
-
"This is the all time high exchange rate for SY"
|
|
5151
|
+
"This is the all time high exchange rate for SY while the vault is not expired"
|
|
5080
5152
|
];
|
|
5081
5153
|
"type": {
|
|
5082
5154
|
"defined": {
|
|
@@ -5087,7 +5159,9 @@ export type ExponentClmm = {
|
|
|
5087
5159
|
{
|
|
5088
5160
|
"name": "finalSyExchangeRate";
|
|
5089
5161
|
"docs": [
|
|
5090
|
-
"
|
|
5162
|
+
"Final PY index captured for YT interest at maturity.",
|
|
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."
|
|
5091
5165
|
];
|
|
5092
5166
|
"type": {
|
|
5093
5167
|
"defined": {
|
package/build/exponent_clmm.json
CHANGED
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
],
|
|
1214
1214
|
"returns": {
|
|
1215
1215
|
"defined": {
|
|
1216
|
-
"name": "
|
|
1216
|
+
"name": "TradePtReturnData"
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
},
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
],
|
|
1320
1320
|
"returns": {
|
|
1321
1321
|
"defined": {
|
|
1322
|
-
"name": "
|
|
1322
|
+
"name": "TradePtReturnData"
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
},
|
|
@@ -2365,6 +2365,19 @@
|
|
|
2365
2365
|
174
|
|
2366
2366
|
]
|
|
2367
2367
|
},
|
|
2368
|
+
{
|
|
2369
|
+
"name": "TradePtReturnData",
|
|
2370
|
+
"discriminator": [
|
|
2371
|
+
26,
|
|
2372
|
+
64,
|
|
2373
|
+
30,
|
|
2374
|
+
82,
|
|
2375
|
+
98,
|
|
2376
|
+
163,
|
|
2377
|
+
184,
|
|
2378
|
+
31
|
|
2379
|
+
]
|
|
2380
|
+
},
|
|
2368
2381
|
{
|
|
2369
2382
|
"name": "WithdrawLiquidityEvent",
|
|
2370
2383
|
"discriminator": [
|
|
@@ -2663,6 +2676,21 @@
|
|
|
2663
2676
|
"code": 6035,
|
|
2664
2677
|
"name": "CrossingEqualizationInvariantViolated",
|
|
2665
2678
|
"msg": "Crossing equalization invariants were violated"
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"code": 6036,
|
|
2682
|
+
"name": "MissingVaultForPyIndex",
|
|
2683
|
+
"msg": "Vault account required to resolve py_index"
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"code": 6037,
|
|
2687
|
+
"name": "InvalidSyExchangeRate",
|
|
2688
|
+
"msg": "SY exchange rate must be positive"
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
"code": 6038,
|
|
2692
|
+
"name": "CrossingLiquidityWouldRoundToZero",
|
|
2693
|
+
"msg": "Partial withdrawal would round crossing liquidity to zero; withdraw the full position instead"
|
|
2666
2694
|
}
|
|
2667
2695
|
],
|
|
2668
2696
|
"types": [
|
|
@@ -2983,7 +3011,7 @@
|
|
|
2983
3011
|
"type": {
|
|
2984
3012
|
"array": [
|
|
2985
3013
|
"u8",
|
|
2986
|
-
|
|
3014
|
+
1023
|
|
2987
3015
|
]
|
|
2988
3016
|
}
|
|
2989
3017
|
}
|
|
@@ -3537,29 +3565,44 @@
|
|
|
3537
3565
|
"fields": [
|
|
3538
3566
|
{
|
|
3539
3567
|
"name": "window_start_timestamp",
|
|
3568
|
+
"docs": [
|
|
3569
|
+
"Last timestamp at which the withdrawal bucket was evaluated.",
|
|
3570
|
+
"",
|
|
3571
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3572
|
+
],
|
|
3540
3573
|
"type": "u32"
|
|
3541
3574
|
},
|
|
3542
3575
|
{
|
|
3543
3576
|
"name": "window_start_net_balance",
|
|
3577
|
+
"docs": [
|
|
3578
|
+
"Remaining normalized PT-equivalent withdrawal capacity.",
|
|
3579
|
+
"",
|
|
3580
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3581
|
+
],
|
|
3544
3582
|
"type": "u64"
|
|
3545
3583
|
},
|
|
3546
3584
|
{
|
|
3547
3585
|
"name": "max_net_balance_change_negative_percentage",
|
|
3548
3586
|
"docs": [
|
|
3549
|
-
"Maximum
|
|
3587
|
+
"Maximum withdrawal capacity in basis points of the market's normalized value."
|
|
3550
3588
|
],
|
|
3551
3589
|
"type": "u16"
|
|
3552
3590
|
},
|
|
3553
3591
|
{
|
|
3554
3592
|
"name": "max_net_balance_change_positive_percentage",
|
|
3555
3593
|
"docs": [
|
|
3556
|
-
"
|
|
3557
|
-
"
|
|
3594
|
+
"Fractional refill numerator carried between withdrawals.",
|
|
3595
|
+
"",
|
|
3596
|
+
"This prevents the realized refill rate from depending on how frequently withdrawals occur.",
|
|
3597
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3558
3598
|
],
|
|
3559
3599
|
"type": "u32"
|
|
3560
3600
|
},
|
|
3561
3601
|
{
|
|
3562
3602
|
"name": "window_duration_seconds",
|
|
3603
|
+
"docs": [
|
|
3604
|
+
"Time required for an empty withdrawal bucket to refill completely."
|
|
3605
|
+
],
|
|
3563
3606
|
"type": "u32"
|
|
3564
3607
|
}
|
|
3565
3608
|
]
|
|
@@ -3804,14 +3847,23 @@
|
|
|
3804
3847
|
"fields": [
|
|
3805
3848
|
{
|
|
3806
3849
|
"name": "max_net_balance_change_negative_percentage",
|
|
3850
|
+
"docs": [
|
|
3851
|
+
"Maximum normalized gross withdrawal, in basis points of market value."
|
|
3852
|
+
],
|
|
3807
3853
|
"type": "u16"
|
|
3808
3854
|
},
|
|
3809
3855
|
{
|
|
3810
3856
|
"name": "max_net_balance_change_positive_percentage",
|
|
3857
|
+
"docs": [
|
|
3858
|
+
"Retained for instruction compatibility. The token-bucket limiter does not use it."
|
|
3859
|
+
],
|
|
3811
3860
|
"type": "u32"
|
|
3812
3861
|
},
|
|
3813
3862
|
{
|
|
3814
3863
|
"name": "window_duration_seconds",
|
|
3864
|
+
"docs": [
|
|
3865
|
+
"Seconds required for an empty withdrawal bucket to refill completely."
|
|
3866
|
+
],
|
|
3815
3867
|
"type": "u32"
|
|
3816
3868
|
}
|
|
3817
3869
|
]
|
|
@@ -4156,6 +4208,10 @@
|
|
|
4156
4208
|
}
|
|
4157
4209
|
}
|
|
4158
4210
|
},
|
|
4211
|
+
{
|
|
4212
|
+
"name": "self_cpi_status",
|
|
4213
|
+
"type": "u8"
|
|
4214
|
+
},
|
|
4159
4215
|
{
|
|
4160
4216
|
"name": "financials",
|
|
4161
4217
|
"type": {
|
|
@@ -4952,6 +5008,22 @@
|
|
|
4952
5008
|
]
|
|
4953
5009
|
}
|
|
4954
5010
|
},
|
|
5011
|
+
{
|
|
5012
|
+
"name": "TradePtReturnData",
|
|
5013
|
+
"type": {
|
|
5014
|
+
"kind": "struct",
|
|
5015
|
+
"fields": [
|
|
5016
|
+
{
|
|
5017
|
+
"name": "amount_in",
|
|
5018
|
+
"type": "u64"
|
|
5019
|
+
},
|
|
5020
|
+
{
|
|
5021
|
+
"name": "amount_out",
|
|
5022
|
+
"type": "u64"
|
|
5023
|
+
}
|
|
5024
|
+
]
|
|
5025
|
+
}
|
|
5026
|
+
},
|
|
4955
5027
|
{
|
|
4956
5028
|
"name": "Vault",
|
|
4957
5029
|
"type": {
|
|
@@ -5059,7 +5131,7 @@
|
|
|
5059
5131
|
"name": "last_seen_sy_exchange_rate",
|
|
5060
5132
|
"docs": [
|
|
5061
5133
|
"Last seen SY exchange rate",
|
|
5062
|
-
"This continues to be updated
|
|
5134
|
+
"This continues to be updated after maturity for PT redemption"
|
|
5063
5135
|
],
|
|
5064
5136
|
"type": {
|
|
5065
5137
|
"defined": {
|
|
@@ -5070,7 +5142,7 @@
|
|
|
5070
5142
|
{
|
|
5071
5143
|
"name": "all_time_high_sy_exchange_rate",
|
|
5072
5144
|
"docs": [
|
|
5073
|
-
"This is the all time high exchange rate for SY"
|
|
5145
|
+
"This is the all time high exchange rate for SY while the vault is not expired"
|
|
5074
5146
|
],
|
|
5075
5147
|
"type": {
|
|
5076
5148
|
"defined": {
|
|
@@ -5081,7 +5153,9 @@
|
|
|
5081
5153
|
{
|
|
5082
5154
|
"name": "final_sy_exchange_rate",
|
|
5083
5155
|
"docs": [
|
|
5084
|
-
"
|
|
5156
|
+
"Final PY index captured for YT interest at maturity.",
|
|
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."
|
|
5085
5159
|
],
|
|
5086
5160
|
"type": {
|
|
5087
5161
|
"defined": {
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -18,23 +18,13 @@ 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) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
})();
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
38
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.PROGRAM_ID = exports.IDL = void 0;
|
|
40
30
|
__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
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
],
|
|
1214
1214
|
"returns": {
|
|
1215
1215
|
"defined": {
|
|
1216
|
-
"name": "
|
|
1216
|
+
"name": "TradePtReturnData"
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
},
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
],
|
|
1320
1320
|
"returns": {
|
|
1321
1321
|
"defined": {
|
|
1322
|
-
"name": "
|
|
1322
|
+
"name": "TradePtReturnData"
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
},
|
|
@@ -2365,6 +2365,19 @@
|
|
|
2365
2365
|
174
|
|
2366
2366
|
]
|
|
2367
2367
|
},
|
|
2368
|
+
{
|
|
2369
|
+
"name": "TradePtReturnData",
|
|
2370
|
+
"discriminator": [
|
|
2371
|
+
26,
|
|
2372
|
+
64,
|
|
2373
|
+
30,
|
|
2374
|
+
82,
|
|
2375
|
+
98,
|
|
2376
|
+
163,
|
|
2377
|
+
184,
|
|
2378
|
+
31
|
|
2379
|
+
]
|
|
2380
|
+
},
|
|
2368
2381
|
{
|
|
2369
2382
|
"name": "WithdrawLiquidityEvent",
|
|
2370
2383
|
"discriminator": [
|
|
@@ -2663,6 +2676,21 @@
|
|
|
2663
2676
|
"code": 6035,
|
|
2664
2677
|
"name": "CrossingEqualizationInvariantViolated",
|
|
2665
2678
|
"msg": "Crossing equalization invariants were violated"
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"code": 6036,
|
|
2682
|
+
"name": "MissingVaultForPyIndex",
|
|
2683
|
+
"msg": "Vault account required to resolve py_index"
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"code": 6037,
|
|
2687
|
+
"name": "InvalidSyExchangeRate",
|
|
2688
|
+
"msg": "SY exchange rate must be positive"
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
"code": 6038,
|
|
2692
|
+
"name": "CrossingLiquidityWouldRoundToZero",
|
|
2693
|
+
"msg": "Partial withdrawal would round crossing liquidity to zero; withdraw the full position instead"
|
|
2666
2694
|
}
|
|
2667
2695
|
],
|
|
2668
2696
|
"types": [
|
|
@@ -2983,7 +3011,7 @@
|
|
|
2983
3011
|
"type": {
|
|
2984
3012
|
"array": [
|
|
2985
3013
|
"u8",
|
|
2986
|
-
|
|
3014
|
+
1023
|
|
2987
3015
|
]
|
|
2988
3016
|
}
|
|
2989
3017
|
}
|
|
@@ -3537,29 +3565,44 @@
|
|
|
3537
3565
|
"fields": [
|
|
3538
3566
|
{
|
|
3539
3567
|
"name": "window_start_timestamp",
|
|
3568
|
+
"docs": [
|
|
3569
|
+
"Last timestamp at which the withdrawal bucket was evaluated.",
|
|
3570
|
+
"",
|
|
3571
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3572
|
+
],
|
|
3540
3573
|
"type": "u32"
|
|
3541
3574
|
},
|
|
3542
3575
|
{
|
|
3543
3576
|
"name": "window_start_net_balance",
|
|
3577
|
+
"docs": [
|
|
3578
|
+
"Remaining normalized PT-equivalent withdrawal capacity.",
|
|
3579
|
+
"",
|
|
3580
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3581
|
+
],
|
|
3544
3582
|
"type": "u64"
|
|
3545
3583
|
},
|
|
3546
3584
|
{
|
|
3547
3585
|
"name": "max_net_balance_change_negative_percentage",
|
|
3548
3586
|
"docs": [
|
|
3549
|
-
"Maximum
|
|
3587
|
+
"Maximum withdrawal capacity in basis points of the market's normalized value."
|
|
3550
3588
|
],
|
|
3551
3589
|
"type": "u16"
|
|
3552
3590
|
},
|
|
3553
3591
|
{
|
|
3554
3592
|
"name": "max_net_balance_change_positive_percentage",
|
|
3555
3593
|
"docs": [
|
|
3556
|
-
"
|
|
3557
|
-
"
|
|
3594
|
+
"Fractional refill numerator carried between withdrawals.",
|
|
3595
|
+
"",
|
|
3596
|
+
"This prevents the realized refill rate from depending on how frequently withdrawals occur.",
|
|
3597
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3558
3598
|
],
|
|
3559
3599
|
"type": "u32"
|
|
3560
3600
|
},
|
|
3561
3601
|
{
|
|
3562
3602
|
"name": "window_duration_seconds",
|
|
3603
|
+
"docs": [
|
|
3604
|
+
"Time required for an empty withdrawal bucket to refill completely."
|
|
3605
|
+
],
|
|
3563
3606
|
"type": "u32"
|
|
3564
3607
|
}
|
|
3565
3608
|
]
|
|
@@ -3804,14 +3847,23 @@
|
|
|
3804
3847
|
"fields": [
|
|
3805
3848
|
{
|
|
3806
3849
|
"name": "max_net_balance_change_negative_percentage",
|
|
3850
|
+
"docs": [
|
|
3851
|
+
"Maximum normalized gross withdrawal, in basis points of market value."
|
|
3852
|
+
],
|
|
3807
3853
|
"type": "u16"
|
|
3808
3854
|
},
|
|
3809
3855
|
{
|
|
3810
3856
|
"name": "max_net_balance_change_positive_percentage",
|
|
3857
|
+
"docs": [
|
|
3858
|
+
"Retained for instruction compatibility. The token-bucket limiter does not use it."
|
|
3859
|
+
],
|
|
3811
3860
|
"type": "u32"
|
|
3812
3861
|
},
|
|
3813
3862
|
{
|
|
3814
3863
|
"name": "window_duration_seconds",
|
|
3864
|
+
"docs": [
|
|
3865
|
+
"Seconds required for an empty withdrawal bucket to refill completely."
|
|
3866
|
+
],
|
|
3815
3867
|
"type": "u32"
|
|
3816
3868
|
}
|
|
3817
3869
|
]
|
|
@@ -4156,6 +4208,10 @@
|
|
|
4156
4208
|
}
|
|
4157
4209
|
}
|
|
4158
4210
|
},
|
|
4211
|
+
{
|
|
4212
|
+
"name": "self_cpi_status",
|
|
4213
|
+
"type": "u8"
|
|
4214
|
+
},
|
|
4159
4215
|
{
|
|
4160
4216
|
"name": "financials",
|
|
4161
4217
|
"type": {
|
|
@@ -4952,6 +5008,22 @@
|
|
|
4952
5008
|
]
|
|
4953
5009
|
}
|
|
4954
5010
|
},
|
|
5011
|
+
{
|
|
5012
|
+
"name": "TradePtReturnData",
|
|
5013
|
+
"type": {
|
|
5014
|
+
"kind": "struct",
|
|
5015
|
+
"fields": [
|
|
5016
|
+
{
|
|
5017
|
+
"name": "amount_in",
|
|
5018
|
+
"type": "u64"
|
|
5019
|
+
},
|
|
5020
|
+
{
|
|
5021
|
+
"name": "amount_out",
|
|
5022
|
+
"type": "u64"
|
|
5023
|
+
}
|
|
5024
|
+
]
|
|
5025
|
+
}
|
|
5026
|
+
},
|
|
4955
5027
|
{
|
|
4956
5028
|
"name": "Vault",
|
|
4957
5029
|
"type": {
|
|
@@ -5059,7 +5131,7 @@
|
|
|
5059
5131
|
"name": "last_seen_sy_exchange_rate",
|
|
5060
5132
|
"docs": [
|
|
5061
5133
|
"Last seen SY exchange rate",
|
|
5062
|
-
"This continues to be updated
|
|
5134
|
+
"This continues to be updated after maturity for PT redemption"
|
|
5063
5135
|
],
|
|
5064
5136
|
"type": {
|
|
5065
5137
|
"defined": {
|
|
@@ -5070,7 +5142,7 @@
|
|
|
5070
5142
|
{
|
|
5071
5143
|
"name": "all_time_high_sy_exchange_rate",
|
|
5072
5144
|
"docs": [
|
|
5073
|
-
"This is the all time high exchange rate for SY"
|
|
5145
|
+
"This is the all time high exchange rate for SY while the vault is not expired"
|
|
5074
5146
|
],
|
|
5075
5147
|
"type": {
|
|
5076
5148
|
"defined": {
|
|
@@ -5081,7 +5153,9 @@
|
|
|
5081
5153
|
{
|
|
5082
5154
|
"name": "final_sy_exchange_rate",
|
|
5083
5155
|
"docs": [
|
|
5084
|
-
"
|
|
5156
|
+
"Final PY index captured for YT interest at maturity.",
|
|
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."
|
|
5085
5159
|
],
|
|
5086
5160
|
"type": {
|
|
5087
5161
|
"defined": {
|
package/src/exponent_clmm.ts
CHANGED
|
@@ -1219,7 +1219,7 @@ export type ExponentClmm = {
|
|
|
1219
1219
|
],
|
|
1220
1220
|
"returns": {
|
|
1221
1221
|
"defined": {
|
|
1222
|
-
"name": "
|
|
1222
|
+
"name": "tradePtReturnData"
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
},
|
|
@@ -1325,7 +1325,7 @@ export type ExponentClmm = {
|
|
|
1325
1325
|
],
|
|
1326
1326
|
"returns": {
|
|
1327
1327
|
"defined": {
|
|
1328
|
-
"name": "
|
|
1328
|
+
"name": "tradePtReturnData"
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
},
|
|
@@ -2371,6 +2371,19 @@ export type ExponentClmm = {
|
|
|
2371
2371
|
174
|
|
2372
2372
|
]
|
|
2373
2373
|
},
|
|
2374
|
+
{
|
|
2375
|
+
"name": "tradePtReturnData",
|
|
2376
|
+
"discriminator": [
|
|
2377
|
+
26,
|
|
2378
|
+
64,
|
|
2379
|
+
30,
|
|
2380
|
+
82,
|
|
2381
|
+
98,
|
|
2382
|
+
163,
|
|
2383
|
+
184,
|
|
2384
|
+
31
|
|
2385
|
+
]
|
|
2386
|
+
},
|
|
2374
2387
|
{
|
|
2375
2388
|
"name": "withdrawLiquidityEvent",
|
|
2376
2389
|
"discriminator": [
|
|
@@ -2669,6 +2682,21 @@ export type ExponentClmm = {
|
|
|
2669
2682
|
"code": 6035,
|
|
2670
2683
|
"name": "crossingEqualizationInvariantViolated",
|
|
2671
2684
|
"msg": "Crossing equalization invariants were violated"
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"code": 6036,
|
|
2688
|
+
"name": "missingVaultForPyIndex",
|
|
2689
|
+
"msg": "Vault account required to resolve py_index"
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"code": 6037,
|
|
2693
|
+
"name": "invalidSyExchangeRate",
|
|
2694
|
+
"msg": "SY exchange rate must be positive"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
"code": 6038,
|
|
2698
|
+
"name": "crossingLiquidityWouldRoundToZero",
|
|
2699
|
+
"msg": "Partial withdrawal would round crossing liquidity to zero; withdraw the full position instead"
|
|
2672
2700
|
}
|
|
2673
2701
|
],
|
|
2674
2702
|
"types": [
|
|
@@ -2989,7 +3017,7 @@ export type ExponentClmm = {
|
|
|
2989
3017
|
"type": {
|
|
2990
3018
|
"array": [
|
|
2991
3019
|
"u8",
|
|
2992
|
-
|
|
3020
|
+
1023
|
|
2993
3021
|
]
|
|
2994
3022
|
}
|
|
2995
3023
|
}
|
|
@@ -3543,29 +3571,44 @@ export type ExponentClmm = {
|
|
|
3543
3571
|
"fields": [
|
|
3544
3572
|
{
|
|
3545
3573
|
"name": "windowStartTimestamp",
|
|
3574
|
+
"docs": [
|
|
3575
|
+
"Last timestamp at which the withdrawal bucket was evaluated.",
|
|
3576
|
+
"",
|
|
3577
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3578
|
+
],
|
|
3546
3579
|
"type": "u32"
|
|
3547
3580
|
},
|
|
3548
3581
|
{
|
|
3549
3582
|
"name": "windowStartNetBalance",
|
|
3583
|
+
"docs": [
|
|
3584
|
+
"Remaining normalized PT-equivalent withdrawal capacity.",
|
|
3585
|
+
"",
|
|
3586
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3587
|
+
],
|
|
3550
3588
|
"type": "u64"
|
|
3551
3589
|
},
|
|
3552
3590
|
{
|
|
3553
3591
|
"name": "maxNetBalanceChangeNegativePercentage",
|
|
3554
3592
|
"docs": [
|
|
3555
|
-
"Maximum
|
|
3593
|
+
"Maximum withdrawal capacity in basis points of the market's normalized value."
|
|
3556
3594
|
],
|
|
3557
3595
|
"type": "u16"
|
|
3558
3596
|
},
|
|
3559
3597
|
{
|
|
3560
3598
|
"name": "maxNetBalanceChangePositivePercentage",
|
|
3561
3599
|
"docs": [
|
|
3562
|
-
"
|
|
3563
|
-
"
|
|
3600
|
+
"Fractional refill numerator carried between withdrawals.",
|
|
3601
|
+
"",
|
|
3602
|
+
"This prevents the realized refill rate from depending on how frequently withdrawals occur.",
|
|
3603
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3564
3604
|
],
|
|
3565
3605
|
"type": "u32"
|
|
3566
3606
|
},
|
|
3567
3607
|
{
|
|
3568
3608
|
"name": "windowDurationSeconds",
|
|
3609
|
+
"docs": [
|
|
3610
|
+
"Time required for an empty withdrawal bucket to refill completely."
|
|
3611
|
+
],
|
|
3569
3612
|
"type": "u32"
|
|
3570
3613
|
}
|
|
3571
3614
|
]
|
|
@@ -3810,14 +3853,23 @@ export type ExponentClmm = {
|
|
|
3810
3853
|
"fields": [
|
|
3811
3854
|
{
|
|
3812
3855
|
"name": "maxNetBalanceChangeNegativePercentage",
|
|
3856
|
+
"docs": [
|
|
3857
|
+
"Maximum normalized gross withdrawal, in basis points of market value."
|
|
3858
|
+
],
|
|
3813
3859
|
"type": "u16"
|
|
3814
3860
|
},
|
|
3815
3861
|
{
|
|
3816
3862
|
"name": "maxNetBalanceChangePositivePercentage",
|
|
3863
|
+
"docs": [
|
|
3864
|
+
"Retained for instruction compatibility. The token-bucket limiter does not use it."
|
|
3865
|
+
],
|
|
3817
3866
|
"type": "u32"
|
|
3818
3867
|
},
|
|
3819
3868
|
{
|
|
3820
3869
|
"name": "windowDurationSeconds",
|
|
3870
|
+
"docs": [
|
|
3871
|
+
"Seconds required for an empty withdrawal bucket to refill completely."
|
|
3872
|
+
],
|
|
3821
3873
|
"type": "u32"
|
|
3822
3874
|
}
|
|
3823
3875
|
]
|
|
@@ -4162,6 +4214,10 @@ export type ExponentClmm = {
|
|
|
4162
4214
|
}
|
|
4163
4215
|
}
|
|
4164
4216
|
},
|
|
4217
|
+
{
|
|
4218
|
+
"name": "selfCpiStatus",
|
|
4219
|
+
"type": "u8"
|
|
4220
|
+
},
|
|
4165
4221
|
{
|
|
4166
4222
|
"name": "financials",
|
|
4167
4223
|
"type": {
|
|
@@ -4958,6 +5014,22 @@ export type ExponentClmm = {
|
|
|
4958
5014
|
]
|
|
4959
5015
|
}
|
|
4960
5016
|
},
|
|
5017
|
+
{
|
|
5018
|
+
"name": "tradePtReturnData",
|
|
5019
|
+
"type": {
|
|
5020
|
+
"kind": "struct",
|
|
5021
|
+
"fields": [
|
|
5022
|
+
{
|
|
5023
|
+
"name": "amountIn",
|
|
5024
|
+
"type": "u64"
|
|
5025
|
+
},
|
|
5026
|
+
{
|
|
5027
|
+
"name": "amountOut",
|
|
5028
|
+
"type": "u64"
|
|
5029
|
+
}
|
|
5030
|
+
]
|
|
5031
|
+
}
|
|
5032
|
+
},
|
|
4961
5033
|
{
|
|
4962
5034
|
"name": "vault",
|
|
4963
5035
|
"type": {
|
|
@@ -5065,7 +5137,7 @@ export type ExponentClmm = {
|
|
|
5065
5137
|
"name": "lastSeenSyExchangeRate",
|
|
5066
5138
|
"docs": [
|
|
5067
5139
|
"Last seen SY exchange rate",
|
|
5068
|
-
"This continues to be updated
|
|
5140
|
+
"This continues to be updated after maturity for PT redemption"
|
|
5069
5141
|
],
|
|
5070
5142
|
"type": {
|
|
5071
5143
|
"defined": {
|
|
@@ -5076,7 +5148,7 @@ export type ExponentClmm = {
|
|
|
5076
5148
|
{
|
|
5077
5149
|
"name": "allTimeHighSyExchangeRate",
|
|
5078
5150
|
"docs": [
|
|
5079
|
-
"This is the all time high exchange rate for SY"
|
|
5151
|
+
"This is the all time high exchange rate for SY while the vault is not expired"
|
|
5080
5152
|
],
|
|
5081
5153
|
"type": {
|
|
5082
5154
|
"defined": {
|
|
@@ -5087,7 +5159,9 @@ export type ExponentClmm = {
|
|
|
5087
5159
|
{
|
|
5088
5160
|
"name": "finalSyExchangeRate",
|
|
5089
5161
|
"docs": [
|
|
5090
|
-
"
|
|
5162
|
+
"Final PY index captured for YT interest at maturity.",
|
|
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."
|
|
5091
5165
|
],
|
|
5092
5166
|
"type": {
|
|
5093
5167
|
"defined": {
|