@gearbox-protocol/sdk 16.0.0-next.3 → 16.0.0-next.4

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.
Files changed (34) hide show
  1. package/dist/cjs/dev/mode-parity/fieldDiff.js +1 -1
  2. package/dist/cjs/model/opportunities.schema.js +5 -5
  3. package/dist/cjs/sdk/index.js +1 -0
  4. package/dist/cjs/sdk/market/MarketSuite.js +22 -20
  5. package/dist/cjs/sdk/market/credit/CreditSuite.js +24 -13
  6. package/dist/cjs/sdk/market/index.js +1 -0
  7. package/dist/cjs/sdk/market/math.js +10 -2
  8. package/dist/cjs/sdk/market/pool/PoolSuite.js +0 -6
  9. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +0 -7
  10. package/dist/cjs/sdk/market/pool/math.js +1 -1
  11. package/dist/esm/dev/mode-parity/fieldDiff.js +1 -1
  12. package/dist/esm/model/opportunities.schema.js +5 -5
  13. package/dist/esm/new-sdk/GearboxSDK.js +2 -2
  14. package/dist/esm/sdk/index.js +2 -2
  15. package/dist/esm/sdk/market/MarketSuite.js +22 -20
  16. package/dist/esm/sdk/market/credit/CreditSuite.js +25 -14
  17. package/dist/esm/sdk/market/index.js +2 -2
  18. package/dist/esm/sdk/market/math.js +10 -3
  19. package/dist/esm/sdk/market/pool/PoolSuite.js +0 -6
  20. package/dist/esm/sdk/market/pool/PoolV310Contract.js +0 -7
  21. package/dist/esm/sdk/market/pool/math.js +2 -2
  22. package/dist/types/dev/mode-parity/fieldDiff.d.ts +3 -3
  23. package/dist/types/model/opportunities.d.ts +27 -30
  24. package/dist/types/model/opportunities.schema.d.ts +56 -64
  25. package/dist/types/model/primitives.d.ts +1 -1
  26. package/dist/types/sdk/index.d.ts +2 -2
  27. package/dist/types/sdk/market/MarketSuite.d.ts +8 -5
  28. package/dist/types/sdk/market/credit/CreditSuite.d.ts +0 -7
  29. package/dist/types/sdk/market/index.d.ts +2 -2
  30. package/dist/types/sdk/market/math.d.ts +9 -4
  31. package/dist/types/sdk/market/pool/PoolSuite.d.ts +0 -5
  32. package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +0 -6
  33. package/dist/types/sdk/market/pool/types.d.ts +0 -6
  34. package/package.json +1 -1
@@ -60,15 +60,22 @@ function usdToNumber(usd) {
60
60
  * @example
61
61
  * ```ts
62
62
  * // borrowed: 750, total: 1000
63
- * calcUtilization(750n, 1000n) // 750 / 1000 = 7500 bps = 75%
63
+ * calcUtilizationRaw(750n, 1000n) // 750 / 1000 = 7500 bps = 75%
64
64
  * ```
65
65
  **/
66
- function calcUtilization(borrowed, total) {
66
+ function calcUtilizationRaw(borrowed, total) {
67
67
  if (total <= 0n || borrowed <= 0n) return 0;
68
68
  const utilization = Number(borrowed * PERCENTAGE_FACTOR / total);
69
69
  return Math.min(utilization, FULL);
70
70
  }
71
71
  /**
72
+ * Pool utilization: {@link PoolOpportunity.totalBorrowedWithInterest} as a
73
+ * share of {@link PoolOpportunity.totalSupply}, in basis points.
74
+ **/
75
+ function calcUtilization(poolOpportunity) {
76
+ return calcUtilizationRaw(poolOpportunity.totalBorrowedWithInterest.value, poolOpportunity.totalSupply.value);
77
+ }
78
+ /**
72
79
  * Annual cost of debt for a credit manager, in basis points:
73
80
  * `baseInterestRate × (1 + feeInterest)` — the pool's base rate plus the
74
81
  * protocol's cut of the accrued interest.
@@ -267,4 +274,4 @@ function optimalHFForPartialLiquidation(borrowRate) {
267
274
  return PERCENTAGE_FACTOR + (borrowRate < 100n ? borrowRate : 100n);
268
275
  }
269
276
  //#endregion
270
- export { DEFAULT_QUOTA_BUFFER_BPS, MAX_LEVERAGE_BUFFER_BPS, PARTIAL_LIQUIDATION_BUFFER_BPS, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, healthFactorBps, minSeizedAmount, optimalHFForPartialLiquidation, optimalRepaidAmount, rayToBps, usdToNumber };
277
+ export { DEFAULT_QUOTA_BUFFER_BPS, MAX_LEVERAGE_BUFFER_BPS, PARTIAL_LIQUIDATION_BUFFER_BPS, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, calcUtilizationRaw, healthFactorBps, minSeizedAmount, optimalHFForPartialLiquidation, optimalRepaidAmount, rayToBps, usdToNumber };
@@ -105,12 +105,6 @@ var PoolSuite = class extends SDKConstruct {
105
105
  return this.pool.unwrappedUnderlying;
106
106
  }
107
107
  /**
108
- * {@inheritDoc IPoolContract.utilization}
109
- */
110
- get utilization() {
111
- return this.pool.utilization;
112
- }
113
- /**
114
108
  * Whether the pool is paused, which blocks borrowing across every connected
115
109
  * credit suite.
116
110
  */
@@ -7,7 +7,6 @@ import "../../utils/index.js";
7
7
  import { BaseContract } from "../../base/BaseContract.js";
8
8
  import "../../base/index.js";
9
9
  import { iPausableAbi } from "../../../abi/iPausable.js";
10
- import { calcUtilization } from "../math.js";
11
10
  //#region src/sdk/market/pool/PoolV310Contract.ts
12
11
  const abi = [...iPoolV310Abi, ...iPausableAbi];
13
12
  var PoolV310Contract = class extends BaseContract {
@@ -47,12 +46,6 @@ var PoolV310Contract = class extends BaseContract {
47
46
  return this.totalSupply * this.dieselRate / RAY;
48
47
  }
49
48
  /**
50
- * {@inheritDoc IPoolContract.utilization}
51
- */
52
- get utilization() {
53
- return calcUtilization(this.borrowed, this.expectedLiquidity);
54
- }
55
- /**
56
49
  * {@inheritDoc IPoolContract.unwrappedUnderlying}
57
50
  */
58
51
  get unwrappedUnderlying() {
@@ -1,5 +1,5 @@
1
1
  import { PERCENTAGE_FACTOR } from "../../constants/math.js";
2
- import { calcUtilization } from "../math.js";
2
+ import { calcUtilizationRaw } from "../math.js";
3
3
  //#region src/sdk/market/pool/math.ts
4
4
  const FULL = Number(PERCENTAGE_FACTOR);
5
5
  /**
@@ -28,7 +28,7 @@ function borrowRateAtUtilization(utilization, params) {
28
28
  **/
29
29
  function utilizationAfterLiquidityChange(expectedLiquidity, availableLiquidity, availableLiquidityChange) {
30
30
  const borrowed = expectedLiquidity - (availableLiquidity + availableLiquidityChange);
31
- return calcUtilization(borrowed, expectedLiquidity);
31
+ return calcUtilizationRaw(borrowed, expectedLiquidity);
32
32
  }
33
33
  /**
34
34
  * Rate depositors earn at a given utilization, in basis points: the interest
@@ -26,7 +26,7 @@ type ExpectedDiffReason = "mode-scoped" | "tolerance";
26
26
  interface FieldDiff {
27
27
  /**
28
28
  * Dotted path into the row, with array elements keyed by their own identity
29
- * rather than by index, e.g. `collateralTokens[0xa0b8...].symbol`.
29
+ * rather than by index, e.g. `allowedDepositTokens[0xa0b8...].symbol`.
30
30
  **/
31
31
  path: string;
32
32
  /**
@@ -74,7 +74,7 @@ interface EntityFieldDiff {
74
74
  }
75
75
  /**
76
76
  * How often one field disagreed across all matched rows, with array keys
77
- * collapsed, e.g. `collateralTokens[].symbol`.
77
+ * collapsed, e.g. `allowedDepositTokens[].symbol`.
78
78
  **/
79
79
  interface DiffPathCount {
80
80
  path: string;
@@ -165,7 +165,7 @@ declare function withExpected(diff: FieldDiff, reason: ExpectedDiffReason): Fiel
165
165
  **/
166
166
  declare function countPaths(diffs: Iterable<EntityFieldDiff>): DiffPathCount[];
167
167
  /**
168
- * Collapse `collateralTokens[0xa0b8...].symbol` to `collateralTokens[].symbol`.
168
+ * Collapse `allowedDepositTokens[0xa0b8...].symbol` to `allowedDepositTokens[].symbol`.
169
169
  **/
170
170
  declare function collapseArrayKeys(path: string): string;
171
171
  /**
@@ -132,17 +132,11 @@ interface OpportunityBase {
132
132
  **/
133
133
  underlyingToken: Token;
134
134
  /**
135
- * Debt principal drawn against the opportunity: everything the pool has lent
136
- * out for a {@link PoolOpportunity} (`pool.totalBorrowed()`), only what the
137
- * strategy's credit manager has drawn for a {@link StrategyOpportunity}
138
- * (`pool.creditManagerBorrowed(creditManager)`).
135
+ * Tokens a user can transfer from their wallet to deposit into a pool
136
+ * position or to use when opening a credit account. They are not necessarily
137
+ * the pool underlying or credit-account collateral tokens.
139
138
  **/
140
- totalBorrow: Amount;
141
- /**
142
- * Tokens accepted as collateral, i.e. the tokens that have both a non-zero
143
- * liquidation threshold and a non-zero quota limit.
144
- **/
145
- collateralTokens: Token[];
139
+ allowedDepositTokens: Token[];
146
140
  /**
147
141
  * The contract's own pause flag: the pool for a {@link PoolOpportunity}, the
148
142
  * credit facade or the pool it borrows from for a
@@ -150,8 +144,8 @@ interface OpportunityBase {
150
144
  **/
151
145
  paused: boolean;
152
146
  /**
153
- * Whether at least one of {@link collateralTokens} is a real-world-asset
154
- * token. Read from a hardcoded per-chain list rather than from the chain.
147
+ * Whether one of the market's quoted tokens is a real-world-asset token.
148
+ * Read from a hardcoded per-chain list rather than from the chain.
155
149
  **/
156
150
  rwa: boolean;
157
151
  /**
@@ -174,10 +168,9 @@ interface PoolOpportunity extends OpportunityBase {
174
168
  **/
175
169
  pool: Address;
176
170
  /**
177
- * Size of the pool: the underlying its shares are worth, converted at the
178
- * current share rate, i.e. `pool.totalAssets()`. Denominated in the
179
- * underlying rather than in shares, so it is comparable with
180
- * {@link OpportunityBase.totalBorrow}.
171
+ * Size of the pool: deposits plus accrued interest, i.e.
172
+ * `pool.expectedLiquidity`. Denominated in the underlying rather than in
173
+ * shares, so it is comparable with {@link totalBorrowedWithInterest}.
181
174
  **/
182
175
  totalSupply: Amount;
183
176
  /**
@@ -185,11 +178,11 @@ interface PoolOpportunity extends OpportunityBase {
185
178
  **/
186
179
  availableLiquidity: Amount;
187
180
  /**
188
- * How much of the pool's capital is currently borrowed, in basis points.
189
- *
190
- * @example `7500` for 75% utilization
181
+ * Everything the pool has lent out plus accrued interest:
182
+ * `pool.expectedLiquidity - pool.availableLiquidity`. Denominated in the
183
+ * underlying.
191
184
  **/
192
- utilization: Bps;
185
+ totalBorrowedWithInterest: Amount;
193
186
  /**
194
187
  * Yield earned by supplying to the pool.
195
188
  *
@@ -226,6 +219,12 @@ interface StrategyOpportunity extends OpportunityBase {
226
219
  * Collateral token the position is built around.
227
220
  **/
228
221
  targetCollateral: Token;
222
+ /**
223
+ * Debt principal this credit manager has drawn from the pool
224
+ * (`pool.creditManagerBorrowed(creditManager)`). Denominated in the
225
+ * underlying.
226
+ **/
227
+ totalBorrowed: Amount;
229
228
  /**
230
229
  * Liquidation threshold of {@link targetCollateral} in this credit manager,
231
230
  * in basis points: the share of the collateral value that counts towards
@@ -310,7 +309,7 @@ interface StrategyOpportunity extends OpportunityBase {
310
309
  totalValue?: Amount;
311
310
  /**
312
311
  * Share of {@link totalValue} that is borrowed, in basis points:
313
- * `totalBorrow / totalValue`.
312
+ * `totalBorrowed / totalValue`.
314
313
  *
315
314
  * Absent in `onchain` mode, because its denominator is, see
316
315
  * {@link totalValue}.
@@ -499,19 +498,17 @@ interface QuotaAsset {
499
498
  **/
500
499
  used: Amount;
501
500
  /**
502
- * This token's share of the pool's used quota, in basis points:
503
- * `used / Σ used` over every quota asset of the pool. Zero when nothing is
504
- * quoted.
501
+ * TODO: add description
505
502
  *
506
- * @example `2500` for 25% of the quoted amount
503
+ * @mode offchain
507
504
  **/
508
- allocationShare: Bps;
505
+ allocationShare?: Bps;
509
506
  /**
510
- * Estimate of how much of the pool's {@link OpportunityBase.totalBorrow}
511
- * backs this collateral: {@link allocationShare} applied to the pool's
512
- * total borrowed amount, denominated in the underlying.
507
+ * TODO: add description
508
+ *
509
+ * @mode offchain
513
510
  **/
514
- allocatedDebt: Amount;
511
+ allocatedDebt?: Amount;
515
512
  }
516
513
  /**
517
514
  * A price feed and the feeds it is composed of.
@@ -127,11 +127,7 @@ declare const opportunityBaseSchema: z.ZodObject<{
127
127
  decimals: z.ZodNumber;
128
128
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
129
129
  }, z.core.$strip>;
130
- totalBorrow: z.ZodObject<{
131
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
132
- valueUsd: z.ZodNullable<z.ZodNumber>;
133
- }, z.core.$strip>;
134
- collateralTokens: z.ZodArray<z.ZodObject<{
130
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
135
131
  chainId: z.ZodNumber;
136
132
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
137
133
  symbol: z.ZodString;
@@ -164,11 +160,11 @@ declare const quotaAssetSchema: z.ZodObject<{
164
160
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
165
161
  valueUsd: z.ZodNullable<z.ZodNumber>;
166
162
  }, z.core.$strip>;
167
- allocationShare: z.ZodNumber;
168
- allocatedDebt: z.ZodObject<{
163
+ allocationShare: z.ZodOptional<z.ZodNumber>;
164
+ allocatedDebt: z.ZodOptional<z.ZodObject<{
169
165
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
170
166
  valueUsd: z.ZodNullable<z.ZodNumber>;
171
- }, z.core.$strip>;
167
+ }, z.core.$strip>>;
172
168
  }, z.core.$strip>;
173
169
  /**
174
170
  * {@link PoolOpportunity}
@@ -204,11 +200,7 @@ declare const poolOpportunitySchema: z.ZodObject<{
204
200
  decimals: z.ZodNumber;
205
201
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
206
202
  }, z.core.$strip>;
207
- totalBorrow: z.ZodObject<{
208
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
209
- valueUsd: z.ZodNullable<z.ZodNumber>;
210
- }, z.core.$strip>;
211
- collateralTokens: z.ZodArray<z.ZodObject<{
203
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
212
204
  chainId: z.ZodNumber;
213
205
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
214
206
  symbol: z.ZodString;
@@ -229,7 +221,10 @@ declare const poolOpportunitySchema: z.ZodObject<{
229
221
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
230
222
  valueUsd: z.ZodNullable<z.ZodNumber>;
231
223
  }, z.core.$strip>;
232
- utilization: z.ZodNumber;
224
+ totalBorrowedWithInterest: z.ZodObject<{
225
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
226
+ valueUsd: z.ZodNullable<z.ZodNumber>;
227
+ }, z.core.$strip>;
233
228
  supplyApy: z.ZodObject<{
234
229
  totalApy: z.ZodOptional<z.ZodNumber>;
235
230
  organicApy: z.ZodNumber;
@@ -296,11 +291,11 @@ declare const poolOpportunitySchema: z.ZodObject<{
296
291
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
297
292
  valueUsd: z.ZodNullable<z.ZodNumber>;
298
293
  }, z.core.$strip>;
299
- allocationShare: z.ZodNumber;
300
- allocatedDebt: z.ZodObject<{
294
+ allocationShare: z.ZodOptional<z.ZodNumber>;
295
+ allocatedDebt: z.ZodOptional<z.ZodObject<{
301
296
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
302
297
  valueUsd: z.ZodNullable<z.ZodNumber>;
303
- }, z.core.$strip>;
298
+ }, z.core.$strip>>;
304
299
  }, z.core.$strip>>;
305
300
  }, z.core.$strip>;
306
301
  /**
@@ -337,11 +332,7 @@ declare const strategyOpportunitySchema: z.ZodObject<{
337
332
  decimals: z.ZodNumber;
338
333
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
339
334
  }, z.core.$strip>;
340
- totalBorrow: z.ZodObject<{
341
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
342
- valueUsd: z.ZodNullable<z.ZodNumber>;
343
- }, z.core.$strip>;
344
- collateralTokens: z.ZodArray<z.ZodObject<{
335
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
345
336
  chainId: z.ZodNumber;
346
337
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
347
338
  symbol: z.ZodString;
@@ -362,6 +353,10 @@ declare const strategyOpportunitySchema: z.ZodObject<{
362
353
  decimals: z.ZodNumber;
363
354
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
364
355
  }, z.core.$strip>;
356
+ totalBorrowed: z.ZodObject<{
357
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
358
+ valueUsd: z.ZodNullable<z.ZodNumber>;
359
+ }, z.core.$strip>;
365
360
  liquidationThreshold: z.ZodNumber;
366
361
  liquidationPremium: z.ZodNumber;
367
362
  liquidationFee: z.ZodNumber;
@@ -475,11 +470,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
475
470
  decimals: z.ZodNumber;
476
471
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
477
472
  }, z.core.$strip>;
478
- totalBorrow: z.ZodObject<{
479
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
480
- valueUsd: z.ZodNullable<z.ZodNumber>;
481
- }, z.core.$strip>;
482
- collateralTokens: z.ZodArray<z.ZodObject<{
473
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
483
474
  chainId: z.ZodNumber;
484
475
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
485
476
  symbol: z.ZodString;
@@ -500,7 +491,10 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
500
491
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
501
492
  valueUsd: z.ZodNullable<z.ZodNumber>;
502
493
  }, z.core.$strip>;
503
- utilization: z.ZodNumber;
494
+ totalBorrowedWithInterest: z.ZodObject<{
495
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
496
+ valueUsd: z.ZodNullable<z.ZodNumber>;
497
+ }, z.core.$strip>;
504
498
  supplyApy: z.ZodObject<{
505
499
  totalApy: z.ZodOptional<z.ZodNumber>;
506
500
  organicApy: z.ZodNumber;
@@ -567,11 +561,11 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
561
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
568
562
  valueUsd: z.ZodNullable<z.ZodNumber>;
569
563
  }, z.core.$strip>;
570
- allocationShare: z.ZodNumber;
571
- allocatedDebt: z.ZodObject<{
564
+ allocationShare: z.ZodOptional<z.ZodNumber>;
565
+ allocatedDebt: z.ZodOptional<z.ZodObject<{
572
566
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
573
567
  valueUsd: z.ZodNullable<z.ZodNumber>;
574
- }, z.core.$strip>;
568
+ }, z.core.$strip>>;
575
569
  }, z.core.$strip>>;
576
570
  }, z.core.$strip>, z.ZodObject<{
577
571
  chainId: z.ZodNumber;
@@ -604,11 +598,7 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
604
598
  decimals: z.ZodNumber;
605
599
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
606
600
  }, z.core.$strip>;
607
- totalBorrow: z.ZodObject<{
608
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
609
- valueUsd: z.ZodNullable<z.ZodNumber>;
610
- }, z.core.$strip>;
611
- collateralTokens: z.ZodArray<z.ZodObject<{
601
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
612
602
  chainId: z.ZodNumber;
613
603
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
614
604
  symbol: z.ZodString;
@@ -629,6 +619,10 @@ declare const opportunitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
629
619
  decimals: z.ZodNumber;
630
620
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
631
621
  }, z.core.$strip>;
622
+ totalBorrowed: z.ZodObject<{
623
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
624
+ valueUsd: z.ZodNullable<z.ZodNumber>;
625
+ }, z.core.$strip>;
632
626
  liquidationThreshold: z.ZodNumber;
633
627
  liquidationPremium: z.ZodNumber;
634
628
  liquidationFee: z.ZodNumber;
@@ -849,11 +843,7 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
849
843
  decimals: z.ZodNumber;
850
844
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
851
845
  }, z.core.$strip>;
852
- totalBorrow: z.ZodObject<{
853
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
854
- valueUsd: z.ZodNullable<z.ZodNumber>;
855
- }, z.core.$strip>;
856
- collateralTokens: z.ZodArray<z.ZodObject<{
846
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
857
847
  chainId: z.ZodNumber;
858
848
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
859
849
  symbol: z.ZodString;
@@ -874,7 +864,10 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
874
864
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
875
865
  valueUsd: z.ZodNullable<z.ZodNumber>;
876
866
  }, z.core.$strip>;
877
- utilization: z.ZodNumber;
867
+ totalBorrowedWithInterest: z.ZodObject<{
868
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
869
+ valueUsd: z.ZodNullable<z.ZodNumber>;
870
+ }, z.core.$strip>;
878
871
  supplyApy: z.ZodObject<{
879
872
  totalApy: z.ZodOptional<z.ZodNumber>;
880
873
  organicApy: z.ZodNumber;
@@ -941,11 +934,11 @@ declare const poolOpportunityDetailSchema: z.ZodObject<{
941
934
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
942
935
  valueUsd: z.ZodNullable<z.ZodNumber>;
943
936
  }, z.core.$strip>;
944
- allocationShare: z.ZodNumber;
945
- allocatedDebt: z.ZodObject<{
937
+ allocationShare: z.ZodOptional<z.ZodNumber>;
938
+ allocatedDebt: z.ZodOptional<z.ZodObject<{
946
939
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
947
940
  valueUsd: z.ZodNullable<z.ZodNumber>;
948
- }, z.core.$strip>;
941
+ }, z.core.$strip>>;
949
942
  }, z.core.$strip>>;
950
943
  rateCurve: z.ZodObject<{
951
944
  points: z.ZodArray<z.ZodObject<{
@@ -990,11 +983,7 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
990
983
  decimals: z.ZodNumber;
991
984
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
992
985
  }, z.core.$strip>;
993
- totalBorrow: z.ZodObject<{
994
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
995
- valueUsd: z.ZodNullable<z.ZodNumber>;
996
- }, z.core.$strip>;
997
- collateralTokens: z.ZodArray<z.ZodObject<{
986
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
998
987
  chainId: z.ZodNumber;
999
988
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1000
989
  symbol: z.ZodString;
@@ -1015,6 +1004,10 @@ declare const strategyOpportunityDetailSchema: z.ZodObject<{
1015
1004
  decimals: z.ZodNumber;
1016
1005
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
1017
1006
  }, z.core.$strip>;
1007
+ totalBorrowed: z.ZodObject<{
1008
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1009
+ valueUsd: z.ZodNullable<z.ZodNumber>;
1010
+ }, z.core.$strip>;
1018
1011
  liquidationThreshold: z.ZodNumber;
1019
1012
  liquidationPremium: z.ZodNumber;
1020
1013
  liquidationFee: z.ZodNumber;
@@ -1153,11 +1146,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1153
1146
  decimals: z.ZodNumber;
1154
1147
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
1155
1148
  }, z.core.$strip>;
1156
- totalBorrow: z.ZodObject<{
1157
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1158
- valueUsd: z.ZodNullable<z.ZodNumber>;
1159
- }, z.core.$strip>;
1160
- collateralTokens: z.ZodArray<z.ZodObject<{
1149
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
1161
1150
  chainId: z.ZodNumber;
1162
1151
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1163
1152
  symbol: z.ZodString;
@@ -1178,7 +1167,10 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1178
1167
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1179
1168
  valueUsd: z.ZodNullable<z.ZodNumber>;
1180
1169
  }, z.core.$strip>;
1181
- utilization: z.ZodNumber;
1170
+ totalBorrowedWithInterest: z.ZodObject<{
1171
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1172
+ valueUsd: z.ZodNullable<z.ZodNumber>;
1173
+ }, z.core.$strip>;
1182
1174
  supplyApy: z.ZodObject<{
1183
1175
  totalApy: z.ZodOptional<z.ZodNumber>;
1184
1176
  organicApy: z.ZodNumber;
@@ -1245,11 +1237,11 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1245
1237
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1246
1238
  valueUsd: z.ZodNullable<z.ZodNumber>;
1247
1239
  }, z.core.$strip>;
1248
- allocationShare: z.ZodNumber;
1249
- allocatedDebt: z.ZodObject<{
1240
+ allocationShare: z.ZodOptional<z.ZodNumber>;
1241
+ allocatedDebt: z.ZodOptional<z.ZodObject<{
1250
1242
  value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1251
1243
  valueUsd: z.ZodNullable<z.ZodNumber>;
1252
- }, z.core.$strip>;
1244
+ }, z.core.$strip>>;
1253
1245
  }, z.core.$strip>>;
1254
1246
  rateCurve: z.ZodObject<{
1255
1247
  points: z.ZodArray<z.ZodObject<{
@@ -1290,11 +1282,7 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1290
1282
  decimals: z.ZodNumber;
1291
1283
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
1292
1284
  }, z.core.$strip>;
1293
- totalBorrow: z.ZodObject<{
1294
- value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1295
- valueUsd: z.ZodNullable<z.ZodNumber>;
1296
- }, z.core.$strip>;
1297
- collateralTokens: z.ZodArray<z.ZodObject<{
1285
+ allowedDepositTokens: z.ZodArray<z.ZodObject<{
1298
1286
  chainId: z.ZodNumber;
1299
1287
  address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
1300
1288
  symbol: z.ZodString;
@@ -1315,6 +1303,10 @@ declare const opportunityDetailSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1315
1303
  decimals: z.ZodNumber;
1316
1304
  assetType: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>;
1317
1305
  }, z.core.$strip>;
1306
+ totalBorrowed: z.ZodObject<{
1307
+ value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
1308
+ valueUsd: z.ZodNullable<z.ZodNumber>;
1309
+ }, z.core.$strip>;
1318
1310
  liquidationThreshold: z.ZodNumber;
1319
1311
  liquidationPremium: z.ZodNumber;
1320
1312
  liquidationFee: z.ZodNumber;
@@ -79,7 +79,7 @@ interface Asset {
79
79
  /**
80
80
  * A token amount together with its USD valuation.
81
81
  *
82
- * The group that owns the field names the token (e.g. `totalBorrow` of an
82
+ * The group that owns the field names the token (e.g. `totalSupply` of a pool
83
83
  * opportunity is denominated in its `underlyingToken`), so neither the symbol
84
84
  * nor the decimals are repeated here.
85
85
  *
@@ -181,7 +181,7 @@ import { ZapperContract } from "./market/zapper/ZapperContract.js";
181
181
  import { IERC20ZapperContract } from "./market/zapper/IERC20ZapperContract.js";
182
182
  import { IETHZapperContract } from "./market/zapper/IETHZapperContract.js";
183
183
  import { MarketRegister, MarketRegistryState, MarketRegistryStateHuman } from "./market/MarketRegister.js";
184
- import { DEFAULT_QUOTA_BUFFER_BPS, MAX_LEVERAGE_BUFFER_BPS, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, QuotaMode, StrategyRateInputs, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, healthFactorBps, minSeizedAmount, optimalHFForPartialLiquidation, optimalRepaidAmount, rayToBps, usdToNumber } from "./market/math.js";
184
+ import { DEFAULT_QUOTA_BUFFER_BPS, MAX_LEVERAGE_BUFFER_BPS, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, QuotaMode, StrategyRateInputs, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, calcUtilizationRaw, healthFactorBps, minSeizedAmount, optimalHFForPartialLiquidation, optimalRepaidAmount, rayToBps, usdToNumber } from "./market/math.js";
185
185
  import { strategyName } from "./market/strategyName.js";
186
186
  import "./market/index.js";
187
187
  import { BasePlugin } from "./plugins/BasePlugin.js";
@@ -262,4 +262,4 @@ import { LiquidationsService } from "./accounts/liquidations/LiquidationsService
262
262
  import { MultichainLiquidationsService } from "./accounts/liquidations/MultichainLiquidationsService.js";
263
263
  import "./accounts/index.js";
264
264
  import { SDKOptions, attachOptionsSchema, onchainSDKOptionsSchema } from "./options.js";
265
- export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_RWA_COMPRESSOR, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractAdapterContract, AbstractAdapterContractOptions, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, type AccountCalculatorOperation, AccountMigratorAdapterContract, AccountSnapshot, AccountToCheck, AdapterContractStateHuman, AdapterContractType, AdapterData, AdapterFactoryArgs, AdapterProtocolOperation, AdapterType, type AddCollateralIntent, AddLiquidityProps, AddressMap, AddressProviderAddresses, AddressProviderState, AddressProviderV310Contract, type AddressProviderV3StateHuman, AddressSet, type AdjustLeverageIntent, type AliasLossPolicyStateHuman, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, AssertAssignable, Asset, type AssetPriceFeedStateHuman, AssetsMap, AttachOptions, BLOCKS_PER_WEEK_BY_NETWORK, BalanceDelta, BalancerStablePriceFeedContract, BalancerSwap, BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, BaseContractArgs, type BaseContractStateHuman, BaseParams, BasePlugin, type BasePriceFeedStateHuman, BaseState, BasicSwapCall, BigIntMath, type BlockNumberProps, type BotListStateHuman, BotPermissions, BotStatusCall, BotsDirectResponse, type BoundedOracleStateHuman, BoundedPriceFeedContract, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, CMSlice, CalcBorrowRateProps, CalcHealthFactorProps, CalcLiquidationPriceForTargetProps, CalcLiquidationPriceProps, CamelotPool, CamelotV3AdapterContract, ChainBlock, ChainBlockPin, ChainBlockSource, ChainConfig, ChainContractsRegister, ChainNotConfiguredError, ChainQueryOneProps, ChainQueryProps, ClaimFarmRewardsProps, ClaimableWithdrawal, ClientOptions, CloseCreditAccountResult, ClosePathBalances, CompositePriceFeedContract, CompressorZapperData, ConcreteAdapterContractOptions, ConnectedBotData, ConnectedBotsCall, ConnectedBotsPerAccount, type ConstantOracleStateHuman, Construct, ConstructOptions, type ContractMethod, ContractOrInterface, ContractParseError, ContractParseErrorOptions, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, ConvexWithdraw, ConvexWithdrawAndClaim, type CoreStateHuman, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountData, CreditAccountDataCall, CreditAccountDataPayload, CreditAccountFilter, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountTokenQuota, CreditAccountTokensSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV310Contract, CreditFacadeState, type CreditFacadeStateHuman, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerDebtParams, type CreditManagerDebtParamsHuman, CreditManagerFilter, CreditManagerOperationResult, CreditManagerState, type CreditManagerStateHuman, CreditManagerV310Contract, CreditSuite, CreditSuiteState, type CreditSuiteStateHuman, CurrentWithdrawals, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveAddLiquidity, CurveClaims, CurveCryptoPriceFeedContract, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, CurveWithdrawal, DEFAULT_QUOTA_BUFFER_BPS, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DStokenData, DUST_THRESHOLD, DaiUsdsAdapterContract, type DelayableIntent, DelayedIntentExtended, type DelayedRoute, type DelayedStart, type DelayedStartResult, DelayedWithdrawalClaim, DelayedWithdrawalRequest, DelegatedMulticall, DepositMetadata, type DepositStrategyIntent, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EncodableCreditAccountOperation, Erc4626PriceFeedContract, EstimateRawTxGasParameters, EtherscanURLParam, ExecuteMulticallBatchesOptions, ExpectedBalanceDeltasProps, ExpectedOutput, ExternalPriceFeedContract, type FetchRedstonePayloadsOptions, FilterDustUSDOptions, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, type FinishIntentProps, FluidDexAdapterContract, FormatBNOptions, FullyLiquidateProps, FullyLiquidateResult, GaugeContract, GaugeData, GaugeParams, type GaugeParamsHuman, type GaugeStateHuman, type GearStakingV3StateHuman, GearboxChain, type GearboxState, type GearboxStateHuman, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetExternalAccountCurrentWithdrawalsProps, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetOpenAccountRequirementsProps, GetPendingWithdrawalsProps, GetPendingWithdrawalsResult, GetReward, GetWithdrawalRequestResultProps, HydrateOptions, IAdapterContract, IAddressProviderContract, IBaseContract, ICreditAccountsService, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, type ILogger, IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, IPoolContract, IPoolsService, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTx, IRWAFactory, IRateKeeperContract, IRedemptionLoggerContract, IRouterContract, IUpdatablePriceFeedContract, IWithdrawalCompressorContract, IZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, type InstantRoute, IntentPreviewError, type IntentPreviewResult, type IntentRoutesResult, type InterestRateModelStateHuman, InterestRateModelType, InvalidDelayedIntentError, IsDustOptions, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LPMonopolizedPoolMeta, type LPPriceFeedStateHuman, LatestUpdate, LegacyAdapterOperation, LidoSubmit, LidoV1AdapterContract, LinearInterestRateModelContract, type LinearInterestRateModelStateHuman, LiquidationFees, LiquidationsService, ListPoolPositionsProps, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, LoadRWALiquidatorsProps, type LogFn, type LossPolicyStateHuman, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_UINT16, MAX_UINT256, MIN_INT96, MULTICALL_ADDRESS, MakerDeposit, MakerRedeem, MarketData, MarketFilter, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, type MarketStateHuman, MarketSuite, MarketType, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, Methods, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, type MultiCall, MulticallBatch, MulticallWithFailure, MultichainAttachOptions, type MultichainChainIdsProps, MultichainConstruct, MultichainHydrateOptions, MultichainLiquidationsService, type MultichainNetworkProps, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, MultichainSDKOptions, type MultichainState, type MultichainStateHuman, MultichainSyncStateOptions, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OnchainSDK, OnchainSDKOptions, OpenCAProps, type OpenStrategyPreview, OpenStrategyPreviewResult, type OpenStrategyProps, OpenStrategyResult, type OperationState, OpportunitiesService, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, ParsedCall, ParsedCallArgs, ParsedCallV2, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationParams, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PartialRecord, PartiallyLiquidateProps, PendingWithdrawal, PendlePair, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PeripheryContract, PermitResult, PhantomTokenContractType, PhantomTokenMeta, PickSomeRequired, PluginFactoriesMap, PluginFactory, PluginState, PluginStateVersionError, PluginStatesMap, PluginsMap, PoolQuotaKeeperContract, type PoolQuotaKeeperStateHuman, PoolService, PoolServiceCall, PoolServiceCallResult, PoolSimulation, PoolState, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, PoolV310Contract, PositionsService, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, type PreviewErrorReason, PriceFeedAnswer, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, PriceFeedRegisterHooks, PriceFeedRegisterOptions, type PriceFeedStateHuman, PriceFeedTreeNode, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleData, type PriceOracleStateHuman, PriceOracleV310Contract, PriceUpdate, ProjectedPoolOptions, PythPriceFeed, QuotaKeeperState, QuotaMode, type QuotaParamsHuman, QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWADefaultTokenMeta, RWAFactoryData, RWAFactoryStateHuman, RWAFactoryType, RWAInvestorData, RWALiquidatorInfo, RWAMissingOpenAccountRequirements, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWAOpenAccountRequirements, RWAOperationArgs, RWARegistry, RWAState, RWAStateHuman, RWATokenMeta, RWAUnderlyingContractType, RWAUnderlyingData, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RampEvent, RateKeeperState, type RateKeeperStateHuman, RateKeeperType, type RawTx, RedemptionLog, RedemptionLoggerV310Contract, RedemptionPhantomRename, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, RelaxedBaseParams, RemoveLiquidityProps, type RepayStrategyIntent, RequestableWithdrawal, type ResumableIntent, RetryOptions, RewardInfo, Rewards, type RouteRefusals, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, RouterV310Contract, SDKConstruct, SDKOptions, SECONDS_PER_YEAR, SECURITIZE_REGISTER_VAULT_TYPES, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeCreditAccountData, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeMissingOpenAccountRequirements, SecuritizeOnRampAdapterContract, SecuritizeOpenAccountRequirements, SecuritizeOperationArgs, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRedemptionGatewayAdapterContract, SecuritizeRegisterMessage, SecuritizeRegisterVaultMessage, SecuritizeSignature, SendRawTxParameters, SetBotProps, SetBotResult, SimpleTokenMeta, SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulateMulticallParameters, SimulateMulticallReturnType, SimulatePoolOperationProps, SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, SimulationError, SimulationErrorType, StakingRewardsAdapterContract, type StartIntent, StrategyCollateralProps, StrategyRateInputs, SupportedValue, Swap, SwapOperation, SyncStateOptions, type TimestampedCalldata, TokenAmount, TokenInfo, TokenMetaData, TokensMeta, TokensMetaState, TraderJoePool, TraderJoePoolVersion, TraderJoeRouterAdapterContract, Transfers, type TumblerStateHuman, TypedObjectUtils, Unarray, UniswapSwap, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UnsupportedZapperFunctionError, UpdatePriceFeedsResult, UpshiftVaultAdapterContract, VERSION_RANGE_310, VaultDeposit, VelodromeV2RouterAdapterContract, VersionRange, VersionedAbi, VotingContractStatus, WAD, WAD_DECIMALS_POW, WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, type WithBlock, type WithMultichain, type WithdrawAssetIntent, WithdrawCollateral, type WithdrawStrategyIntent, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalMetadata, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, WstETHPriceFeedContract, WstETHUnwrap, WstETHV1AdapterContract, WstETHWrap, YearnPriceFeedContract, ZapperContract, ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, bytes32ToString, calcBorrowApy, calcBorrowRate, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcTimeToLiquidationMs, calcUtilization, chains, childLogger, classifyCurveOperation, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, fetchRedstonePayloads, filterDust, filterDustUSD, findCuratorMarketConfigurator, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isDust, isLPPriceFeed, isPublicNetwork, isRWAFactory, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalRepaidAmount, parseAdapterAction, parseAdapterDeployParams, parsePosNegAmount, percentFmt, pickStrategyTargetCollateral, rayToBps, rayToNumber, retry, rewardsFromTransfers, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toShares, toSharesUp, toSignificant, toWithdrawalStatus, usdToNumber, watchBlocksAsync };
265
+ export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_RWA_COMPRESSOR, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractAdapterContract, AbstractAdapterContractOptions, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, type AccountCalculatorOperation, AccountMigratorAdapterContract, AccountSnapshot, AccountToCheck, AdapterContractStateHuman, AdapterContractType, AdapterData, AdapterFactoryArgs, AdapterProtocolOperation, AdapterType, type AddCollateralIntent, AddLiquidityProps, AddressMap, AddressProviderAddresses, AddressProviderState, AddressProviderV310Contract, type AddressProviderV3StateHuman, AddressSet, type AdjustLeverageIntent, type AliasLossPolicyStateHuman, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, AssertAssignable, Asset, type AssetPriceFeedStateHuman, AssetsMap, AttachOptions, BLOCKS_PER_WEEK_BY_NETWORK, BalanceDelta, BalancerStablePriceFeedContract, BalancerSwap, BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, BaseContractArgs, type BaseContractStateHuman, BaseParams, BasePlugin, type BasePriceFeedStateHuman, BaseState, BasicSwapCall, BigIntMath, type BlockNumberProps, type BotListStateHuman, BotPermissions, BotStatusCall, BotsDirectResponse, type BoundedOracleStateHuman, BoundedPriceFeedContract, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, CMSlice, CalcBorrowRateProps, CalcHealthFactorProps, CalcLiquidationPriceForTargetProps, CalcLiquidationPriceProps, CamelotPool, CamelotV3AdapterContract, ChainBlock, ChainBlockPin, ChainBlockSource, ChainConfig, ChainContractsRegister, ChainNotConfiguredError, ChainQueryOneProps, ChainQueryProps, ClaimFarmRewardsProps, ClaimableWithdrawal, ClientOptions, CloseCreditAccountResult, ClosePathBalances, CompositePriceFeedContract, CompressorZapperData, ConcreteAdapterContractOptions, ConnectedBotData, ConnectedBotsCall, ConnectedBotsPerAccount, type ConstantOracleStateHuman, Construct, ConstructOptions, type ContractMethod, ContractOrInterface, ContractParseError, ContractParseErrorOptions, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, ConvexWithdraw, ConvexWithdrawAndClaim, type CoreStateHuman, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountData, CreditAccountDataCall, CreditAccountDataPayload, CreditAccountFilter, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountTokenQuota, CreditAccountTokensSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV310Contract, CreditFacadeState, type CreditFacadeStateHuman, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerDebtParams, type CreditManagerDebtParamsHuman, CreditManagerFilter, CreditManagerOperationResult, CreditManagerState, type CreditManagerStateHuman, CreditManagerV310Contract, CreditSuite, CreditSuiteState, type CreditSuiteStateHuman, CurrentWithdrawals, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveAddLiquidity, CurveClaims, CurveCryptoPriceFeedContract, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, CurveWithdrawal, DEFAULT_QUOTA_BUFFER_BPS, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DStokenData, DUST_THRESHOLD, DaiUsdsAdapterContract, type DelayableIntent, DelayedIntentExtended, type DelayedRoute, type DelayedStart, type DelayedStartResult, DelayedWithdrawalClaim, DelayedWithdrawalRequest, DelegatedMulticall, DepositMetadata, type DepositStrategyIntent, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EncodableCreditAccountOperation, Erc4626PriceFeedContract, EstimateRawTxGasParameters, EtherscanURLParam, ExecuteMulticallBatchesOptions, ExpectedBalanceDeltasProps, ExpectedOutput, ExternalPriceFeedContract, type FetchRedstonePayloadsOptions, FilterDustUSDOptions, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, type FinishIntentProps, FluidDexAdapterContract, FormatBNOptions, FullyLiquidateProps, FullyLiquidateResult, GaugeContract, GaugeData, GaugeParams, type GaugeParamsHuman, type GaugeStateHuman, type GearStakingV3StateHuman, GearboxChain, type GearboxState, type GearboxStateHuman, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetExternalAccountCurrentWithdrawalsProps, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetOpenAccountRequirementsProps, GetPendingWithdrawalsProps, GetPendingWithdrawalsResult, GetReward, GetWithdrawalRequestResultProps, HydrateOptions, IAdapterContract, IAddressProviderContract, IBaseContract, ICreditAccountsService, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, type ILogger, IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, IPoolContract, IPoolsService, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTx, IRWAFactory, IRateKeeperContract, IRedemptionLoggerContract, IRouterContract, IUpdatablePriceFeedContract, IWithdrawalCompressorContract, IZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, type InstantRoute, IntentPreviewError, type IntentPreviewResult, type IntentRoutesResult, type InterestRateModelStateHuman, InterestRateModelType, InvalidDelayedIntentError, IsDustOptions, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LPMonopolizedPoolMeta, type LPPriceFeedStateHuman, LatestUpdate, LegacyAdapterOperation, LidoSubmit, LidoV1AdapterContract, LinearInterestRateModelContract, type LinearInterestRateModelStateHuman, LiquidationFees, LiquidationsService, ListPoolPositionsProps, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, LoadRWALiquidatorsProps, type LogFn, type LossPolicyStateHuman, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_UINT16, MAX_UINT256, MIN_INT96, MULTICALL_ADDRESS, MakerDeposit, MakerRedeem, MarketData, MarketFilter, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, type MarketStateHuman, MarketSuite, MarketType, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, Methods, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, type MultiCall, MulticallBatch, MulticallWithFailure, MultichainAttachOptions, type MultichainChainIdsProps, MultichainConstruct, MultichainHydrateOptions, MultichainLiquidationsService, type MultichainNetworkProps, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, MultichainSDKOptions, type MultichainState, type MultichainStateHuman, MultichainSyncStateOptions, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OnchainSDK, OnchainSDKOptions, OpenCAProps, type OpenStrategyPreview, OpenStrategyPreviewResult, type OpenStrategyProps, OpenStrategyResult, type OperationState, OpportunitiesService, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, ParsedCall, ParsedCallArgs, ParsedCallV2, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationParams, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PartialRecord, PartiallyLiquidateProps, PendingWithdrawal, PendlePair, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PeripheryContract, PermitResult, PhantomTokenContractType, PhantomTokenMeta, PickSomeRequired, PluginFactoriesMap, PluginFactory, PluginState, PluginStateVersionError, PluginStatesMap, PluginsMap, PoolQuotaKeeperContract, type PoolQuotaKeeperStateHuman, PoolService, PoolServiceCall, PoolServiceCallResult, PoolSimulation, PoolState, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, PoolV310Contract, PositionsService, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, type PreviewErrorReason, PriceFeedAnswer, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, PriceFeedRegisterHooks, PriceFeedRegisterOptions, type PriceFeedStateHuman, PriceFeedTreeNode, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleData, type PriceOracleStateHuman, PriceOracleV310Contract, PriceUpdate, ProjectedPoolOptions, PythPriceFeed, QuotaKeeperState, QuotaMode, type QuotaParamsHuman, QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWADefaultTokenMeta, RWAFactoryData, RWAFactoryStateHuman, RWAFactoryType, RWAInvestorData, RWALiquidatorInfo, RWAMissingOpenAccountRequirements, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWAOpenAccountRequirements, RWAOperationArgs, RWARegistry, RWAState, RWAStateHuman, RWATokenMeta, RWAUnderlyingContractType, RWAUnderlyingData, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RampEvent, RateKeeperState, type RateKeeperStateHuman, RateKeeperType, type RawTx, RedemptionLog, RedemptionLoggerV310Contract, RedemptionPhantomRename, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, RelaxedBaseParams, RemoveLiquidityProps, type RepayStrategyIntent, RequestableWithdrawal, type ResumableIntent, RetryOptions, RewardInfo, Rewards, type RouteRefusals, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, RouterV310Contract, SDKConstruct, SDKOptions, SECONDS_PER_YEAR, SECURITIZE_REGISTER_VAULT_TYPES, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeCreditAccountData, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeMissingOpenAccountRequirements, SecuritizeOnRampAdapterContract, SecuritizeOpenAccountRequirements, SecuritizeOperationArgs, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRedemptionGatewayAdapterContract, SecuritizeRegisterMessage, SecuritizeRegisterVaultMessage, SecuritizeSignature, SendRawTxParameters, SetBotProps, SetBotResult, SimpleTokenMeta, SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulateMulticallParameters, SimulateMulticallReturnType, SimulatePoolOperationProps, SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, SimulationError, SimulationErrorType, StakingRewardsAdapterContract, type StartIntent, StrategyCollateralProps, StrategyRateInputs, SupportedValue, Swap, SwapOperation, SyncStateOptions, type TimestampedCalldata, TokenAmount, TokenInfo, TokenMetaData, TokensMeta, TokensMetaState, TraderJoePool, TraderJoePoolVersion, TraderJoeRouterAdapterContract, Transfers, type TumblerStateHuman, TypedObjectUtils, Unarray, UniswapSwap, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UnsupportedZapperFunctionError, UpdatePriceFeedsResult, UpshiftVaultAdapterContract, VERSION_RANGE_310, VaultDeposit, VelodromeV2RouterAdapterContract, VersionRange, VersionedAbi, VotingContractStatus, WAD, WAD_DECIMALS_POW, WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, type WithBlock, type WithMultichain, type WithdrawAssetIntent, WithdrawCollateral, type WithdrawStrategyIntent, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalMetadata, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, WstETHPriceFeedContract, WstETHUnwrap, WstETHV1AdapterContract, WstETHWrap, YearnPriceFeedContract, ZapperContract, ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, bytes32ToString, calcBorrowApy, calcBorrowRate, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, childLogger, classifyCurveOperation, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, fetchRedstonePayloads, filterDust, filterDustUSD, findCuratorMarketConfigurator, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isDust, isLPPriceFeed, isPublicNetwork, isRWAFactory, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalRepaidAmount, parseAdapterAction, parseAdapterDeployParams, parsePosNegAmount, percentFmt, pickStrategyTargetCollateral, rayToBps, rayToNumber, retry, rewardsFromTransfers, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toShares, toSharesUp, toSignificant, toWithdrawalStatus, usdToNumber, watchBlocksAsync };
@@ -110,13 +110,16 @@ declare class MarketSuite extends SDKConstruct {
110
110
  */
111
111
  get curator(): Curator;
112
112
  /**
113
- * Tokens a position can actually be built on in this market, deduplicated
114
- * across its credit suites.
113
+ * Tokens a user can transfer from their wallet to deposit into this pool.
114
+ *
115
+ * 1. unwrapped underlying
116
+ * 2. tokenIn of every zapper (order does not matter), skipping the wrapped
117
+ * and unwrapped underlying
115
118
  */
116
- get collateralTokens(): Token[];
119
+ get allowedDepositTokens(): Token[];
117
120
  /**
118
- * Whether at least one of {@link collateralTokens} is a real-world-asset
119
- * token. Read from a hardcoded per-chain list rather than from the chain.
121
+ * Whether one of the market's quoted tokens is a real-world-asset token.
122
+ * Read from a hardcoded per-chain list rather than from the chain.
120
123
  */
121
124
  get rwa(): boolean;
122
125
  /**
@@ -134,13 +134,6 @@ declare class CreditSuite extends SDKConstruct {
134
134
  * so the suite is unusable even when its own facade is live.
135
135
  */
136
136
  get isPaused(): boolean;
137
- /**
138
- * Collateral tokens a leveraged position can be built around in this suite,
139
- * see {@link isStrategyCollateral} for the per-token criteria. Tokens the
140
- * facade has forbidden are excluded — they cannot be taken on — even when
141
- * they still pass the shared eligibility rule used for target selection.
142
- */
143
- get strategyCollaterals(): Address[];
144
137
  /**
145
138
  * Tokens forbidden by the facade.
146
139
  */