@paraswap/dex-lib 3.11.5-fluid-dex-changes.1 → 3.11.5

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 (197) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/fluid-dex/resolver.abi.json +4 -731
  5. package/build/abi/{cables/CablesMainnetRFQ.json → inception/inception-ineth-pool.json} +489 -510
  6. package/build/abi/inception/inception-ratio-feed.json +329 -0
  7. package/build/abi/inception/inception-vault.json +991 -0
  8. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  9. package/build/abi/{integral/relayer.json → wombat/pool.json} +474 -721
  10. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  11. package/build/dex/aave-v1/aave-v1.js +23 -0
  12. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  13. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  14. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  15. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  16. package/build/dex/algebra/algebra.js +10 -18
  17. package/build/dex/algebra/algebra.js.map +1 -1
  18. package/build/dex/algebra/config.js +1 -1
  19. package/build/dex/algebra/config.js.map +1 -1
  20. package/build/dex/balancer-v2/balancer-v2.js +1 -0
  21. package/build/dex/balancer-v2/balancer-v2.js.map +1 -1
  22. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  23. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  24. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  25. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  26. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  27. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  28. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  29. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  30. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  31. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +76 -0
  32. package/build/dex/balancer-v3/balancer-v3-pool.js +383 -0
  33. package/build/dex/balancer-v3/balancer-v3-pool.js.map +1 -0
  34. package/build/dex/balancer-v3/balancer-v3.d.ts +57 -0
  35. package/build/dex/balancer-v3/balancer-v3.js +373 -0
  36. package/build/dex/balancer-v3/balancer-v3.js.map +1 -0
  37. package/build/dex/balancer-v3/config.d.ts +8 -0
  38. package/build/dex/balancer-v3/config.js +24 -0
  39. package/build/dex/balancer-v3/config.js.map +1 -0
  40. package/build/dex/balancer-v3/getOnChainState.d.ts +10 -0
  41. package/build/dex/balancer-v3/getOnChainState.js +158 -0
  42. package/build/dex/balancer-v3/getOnChainState.js.map +1 -0
  43. package/build/dex/balancer-v3/getPoolsApi.d.ts +2 -0
  44. package/build/dex/balancer-v3/getPoolsApi.js +81 -0
  45. package/build/dex/balancer-v3/getPoolsApi.js.map +1 -0
  46. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +13 -0
  47. package/build/dex/balancer-v3/getTopPoolsApi.js +62 -0
  48. package/build/dex/balancer-v3/getTopPoolsApi.js.map +1 -0
  49. package/build/dex/balancer-v3/types.d.ts +63 -0
  50. package/build/dex/balancer-v3/types.js +3 -0
  51. package/build/dex/balancer-v3/types.js.map +1 -0
  52. package/build/dex/fluid-dex/config.js +1 -1
  53. package/build/dex/fluid-dex/fluid-dex-liquidity-proxy.js +1 -28
  54. package/build/dex/fluid-dex/fluid-dex-liquidity-proxy.js.map +1 -1
  55. package/build/dex/fluid-dex/fluid-dex.d.ts +10 -17
  56. package/build/dex/fluid-dex/fluid-dex.js +67 -218
  57. package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
  58. package/build/dex/fluid-dex/types.d.ts +2 -22
  59. package/build/dex/inception/config.d.ts +4 -0
  60. package/build/dex/inception/config.js +109 -0
  61. package/build/dex/inception/config.js.map +1 -0
  62. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  63. package/build/dex/inception/inception-event-pool.js +49 -0
  64. package/build/dex/inception/inception-event-pool.js.map +1 -0
  65. package/build/dex/inception/inception.d.ts +43 -0
  66. package/build/dex/inception/inception.js +180 -0
  67. package/build/dex/inception/inception.js.map +1 -0
  68. package/build/dex/inception/tokens.d.ts +9 -0
  69. package/build/dex/inception/tokens.js +28 -0
  70. package/build/dex/inception/tokens.js.map +1 -0
  71. package/build/dex/inception/types.d.ts +22 -0
  72. package/build/dex/inception/types.js +3 -0
  73. package/build/dex/inception/types.js.map +1 -0
  74. package/build/dex/inception/utils.d.ts +7 -0
  75. package/build/dex/inception/utils.js +58 -0
  76. package/build/dex/inception/utils.js.map +1 -0
  77. package/build/dex/jarvis.d.ts +2 -1
  78. package/build/dex/jarvis.js +58 -0
  79. package/build/dex/jarvis.js.map +1 -1
  80. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  81. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  82. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  83. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  84. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  85. package/build/dex/platypus/platypus.d.ts +2 -1
  86. package/build/dex/platypus/platypus.js +45 -0
  87. package/build/dex/platypus/platypus.js.map +1 -1
  88. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  89. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  90. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  91. package/build/dex/stable-pool.js +1 -8
  92. package/build/dex/stable-pool.js.map +1 -1
  93. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  94. package/build/dex/swaap-v1/swaap-v1.js +14 -0
  95. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  96. package/build/dex/uniswap-v3/config.js +1 -1
  97. package/build/dex/uniswap-v3/config.js.map +1 -1
  98. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  99. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  100. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  101. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  102. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  103. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  104. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  105. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  106. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  107. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  108. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  109. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  110. package/build/dex/zerox/index.d.ts +4 -26
  111. package/build/dex/zerox/index.js +50 -42
  112. package/build/dex/zerox/index.js.map +1 -1
  113. package/build/dex/zerox/types.d.ts +29 -0
  114. package/build/dex/zerox/types.js +8 -1
  115. package/build/dex/zerox/types.js.map +1 -1
  116. package/package.json +1 -1
  117. package/src/abi/fluid-dex/resolver.abi.json +4 -731
  118. package/src/dex/algebra/algebra.ts +20 -19
  119. package/src/dex/algebra/config.ts +1 -2
  120. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +78 -0
  121. package/src/dex/balancer-v2/balancer-v2.ts +2 -0
  122. package/src/dex/fluid-dex/config.ts +1 -1
  123. package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +3 -151
  124. package/src/dex/fluid-dex/fluid-dex-events.test.ts +4 -2
  125. package/src/dex/fluid-dex/fluid-dex-integration.test.ts +11 -79
  126. package/src/dex/fluid-dex/fluid-dex-liquidity-proxy.ts +0 -33
  127. package/src/dex/fluid-dex/fluid-dex.ts +104 -302
  128. package/src/dex/fluid-dex/types.ts +1 -25
  129. package/src/dex/uniswap-v3/config.ts +1 -2
  130. package/.idea/aws.xml +0 -17
  131. package/.idea/codeStyles/Project.xml +0 -19
  132. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  133. package/.idea/misc.xml +0 -6
  134. package/.idea/modules.xml +0 -8
  135. package/.idea/paraswap-dex-lib.iml +0 -9
  136. package/.idea/prettier.xml +0 -7
  137. package/.idea/vcs.xml +0 -6
  138. package/build/abi/integral/factory.json +0 -333
  139. package/build/abi/integral/oracle.json +0 -501
  140. package/build/abi/integral/pool.json +0 -1041
  141. package/build/dex/cables/cables.d.ts +0 -59
  142. package/build/dex/cables/cables.js +0 -599
  143. package/build/dex/cables/cables.js.map +0 -1
  144. package/build/dex/cables/config.d.ts +0 -4
  145. package/build/dex/cables/config.js +0 -15
  146. package/build/dex/cables/config.js.map +0 -1
  147. package/build/dex/cables/constants.d.ts +0 -20
  148. package/build/dex/cables/constants.js +0 -24
  149. package/build/dex/cables/constants.js.map +0 -1
  150. package/build/dex/cables/rate-fetcher.d.ts +0 -34
  151. package/build/dex/cables/rate-fetcher.js +0 -106
  152. package/build/dex/cables/rate-fetcher.js.map +0 -1
  153. package/build/dex/cables/types.d.ts +0 -113
  154. package/build/dex/cables/types.js +0 -19
  155. package/build/dex/cables/types.js.map +0 -1
  156. package/build/dex/cables/validators.d.ts +0 -5
  157. package/build/dex/cables/validators.js +0 -49
  158. package/build/dex/cables/validators.js.map +0 -1
  159. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +0 -49
  160. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +0 -104
  161. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +0 -1
  162. package/build/dex/integral/config.d.ts +0 -4
  163. package/build/dex/integral/config.js +0 -20
  164. package/build/dex/integral/config.js.map +0 -1
  165. package/build/dex/integral/context.d.ts +0 -40
  166. package/build/dex/integral/context.js +0 -158
  167. package/build/dex/integral/context.js.map +0 -1
  168. package/build/dex/integral/integral-factory.d.ts +0 -24
  169. package/build/dex/integral/integral-factory.js +0 -95
  170. package/build/dex/integral/integral-factory.js.map +0 -1
  171. package/build/dex/integral/integral-pool.d.ts +0 -50
  172. package/build/dex/integral/integral-pool.js +0 -149
  173. package/build/dex/integral/integral-pool.js.map +0 -1
  174. package/build/dex/integral/integral-pricing.d.ts +0 -18
  175. package/build/dex/integral/integral-pricing.js +0 -114
  176. package/build/dex/integral/integral-pricing.js.map +0 -1
  177. package/build/dex/integral/integral-relayer.d.ts +0 -42
  178. package/build/dex/integral/integral-relayer.js +0 -192
  179. package/build/dex/integral/integral-relayer.js.map +0 -1
  180. package/build/dex/integral/integral-token.d.ts +0 -27
  181. package/build/dex/integral/integral-token.js +0 -59
  182. package/build/dex/integral/integral-token.js.map +0 -1
  183. package/build/dex/integral/integral.d.ts +0 -41
  184. package/build/dex/integral/integral.js +0 -376
  185. package/build/dex/integral/integral.js.map +0 -1
  186. package/build/dex/integral/types.d.ts +0 -85
  187. package/build/dex/integral/types.js +0 -9
  188. package/build/dex/integral/types.js.map +0 -1
  189. package/build/dex/integral/utils-e2e.d.ts +0 -9
  190. package/build/dex/integral/utils-e2e.js +0 -131
  191. package/build/dex/integral/utils-e2e.js.map +0 -1
  192. package/build/dex/integral/utils.d.ts +0 -17
  193. package/build/dex/integral/utils.js +0 -94
  194. package/build/dex/integral/utils.js.map +0 -1
  195. package/build/dex/trader-joe-v2.1/optimizer.d.ts +0 -2
  196. package/build/dex/trader-joe-v2.1/optimizer.js +0 -47
  197. package/build/dex/trader-joe-v2.1/optimizer.js.map +0 -1
@@ -5,16 +5,6 @@
5
5
  "internalType": "address",
6
6
  "name": "factory_",
7
7
  "type": "address"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "liquidity_",
12
- "type": "address"
13
- },
14
- {
15
- "internalType": "address",
16
- "name": "liquidityResolver_",
17
- "type": "address"
18
8
  }
19
9
  ],
20
10
  "stateMutability": "nonpayable",
@@ -33,32 +23,6 @@
33
23
  "stateMutability": "view",
34
24
  "type": "function"
35
25
  },
36
- {
37
- "inputs": [],
38
- "name": "LIQUIDITY",
39
- "outputs": [
40
- {
41
- "internalType": "contract IFluidLiquidity",
42
- "name": "",
43
- "type": "address"
44
- }
45
- ],
46
- "stateMutability": "view",
47
- "type": "function"
48
- },
49
- {
50
- "inputs": [],
51
- "name": "LIQUIDITY_RESOLVER",
52
- "outputs": [
53
- {
54
- "internalType": "contract IFluidLiquidityResolver",
55
- "name": "",
56
- "type": "address"
57
- }
58
- ],
59
- "stateMutability": "view",
60
- "type": "function"
61
- },
62
26
  {
63
27
  "inputs": [
64
28
  {
@@ -264,101 +228,6 @@
264
228
  "internalType": "struct IFluidDexT1.DebtReserves",
265
229
  "name": "debtReserves",
266
230
  "type": "tuple"
267
- },
268
- {
269
- "components": [
270
- {
271
- "components": [
272
- {
273
- "internalType": "uint256",
274
- "name": "available",
275
- "type": "uint256"
276
- },
277
- {
278
- "internalType": "uint256",
279
- "name": "expandsTo",
280
- "type": "uint256"
281
- },
282
- {
283
- "internalType": "uint256",
284
- "name": "expandDuration",
285
- "type": "uint256"
286
- }
287
- ],
288
- "internalType": "struct Structs.TokenLimit",
289
- "name": "withdrawableToken0",
290
- "type": "tuple"
291
- },
292
- {
293
- "components": [
294
- {
295
- "internalType": "uint256",
296
- "name": "available",
297
- "type": "uint256"
298
- },
299
- {
300
- "internalType": "uint256",
301
- "name": "expandsTo",
302
- "type": "uint256"
303
- },
304
- {
305
- "internalType": "uint256",
306
- "name": "expandDuration",
307
- "type": "uint256"
308
- }
309
- ],
310
- "internalType": "struct Structs.TokenLimit",
311
- "name": "withdrawableToken1",
312
- "type": "tuple"
313
- },
314
- {
315
- "components": [
316
- {
317
- "internalType": "uint256",
318
- "name": "available",
319
- "type": "uint256"
320
- },
321
- {
322
- "internalType": "uint256",
323
- "name": "expandsTo",
324
- "type": "uint256"
325
- },
326
- {
327
- "internalType": "uint256",
328
- "name": "expandDuration",
329
- "type": "uint256"
330
- }
331
- ],
332
- "internalType": "struct Structs.TokenLimit",
333
- "name": "borrowableToken0",
334
- "type": "tuple"
335
- },
336
- {
337
- "components": [
338
- {
339
- "internalType": "uint256",
340
- "name": "available",
341
- "type": "uint256"
342
- },
343
- {
344
- "internalType": "uint256",
345
- "name": "expandsTo",
346
- "type": "uint256"
347
- },
348
- {
349
- "internalType": "uint256",
350
- "name": "expandDuration",
351
- "type": "uint256"
352
- }
353
- ],
354
- "internalType": "struct Structs.TokenLimit",
355
- "name": "borrowableToken1",
356
- "type": "tuple"
357
- }
358
- ],
359
- "internalType": "struct Structs.DexLimits",
360
- "name": "limits",
361
- "type": "tuple"
362
231
  }
363
232
  ],
364
233
  "internalType": "struct Structs.PoolWithReserves[]",
@@ -458,101 +327,6 @@
458
327
  "internalType": "struct IFluidDexT1.DebtReserves",
459
328
  "name": "debtReserves",
460
329
  "type": "tuple"
461
- },
462
- {
463
- "components": [
464
- {
465
- "components": [
466
- {
467
- "internalType": "uint256",
468
- "name": "available",
469
- "type": "uint256"
470
- },
471
- {
472
- "internalType": "uint256",
473
- "name": "expandsTo",
474
- "type": "uint256"
475
- },
476
- {
477
- "internalType": "uint256",
478
- "name": "expandDuration",
479
- "type": "uint256"
480
- }
481
- ],
482
- "internalType": "struct Structs.TokenLimit",
483
- "name": "withdrawableToken0",
484
- "type": "tuple"
485
- },
486
- {
487
- "components": [
488
- {
489
- "internalType": "uint256",
490
- "name": "available",
491
- "type": "uint256"
492
- },
493
- {
494
- "internalType": "uint256",
495
- "name": "expandsTo",
496
- "type": "uint256"
497
- },
498
- {
499
- "internalType": "uint256",
500
- "name": "expandDuration",
501
- "type": "uint256"
502
- }
503
- ],
504
- "internalType": "struct Structs.TokenLimit",
505
- "name": "withdrawableToken1",
506
- "type": "tuple"
507
- },
508
- {
509
- "components": [
510
- {
511
- "internalType": "uint256",
512
- "name": "available",
513
- "type": "uint256"
514
- },
515
- {
516
- "internalType": "uint256",
517
- "name": "expandsTo",
518
- "type": "uint256"
519
- },
520
- {
521
- "internalType": "uint256",
522
- "name": "expandDuration",
523
- "type": "uint256"
524
- }
525
- ],
526
- "internalType": "struct Structs.TokenLimit",
527
- "name": "borrowableToken0",
528
- "type": "tuple"
529
- },
530
- {
531
- "components": [
532
- {
533
- "internalType": "uint256",
534
- "name": "available",
535
- "type": "uint256"
536
- },
537
- {
538
- "internalType": "uint256",
539
- "name": "expandsTo",
540
- "type": "uint256"
541
- },
542
- {
543
- "internalType": "uint256",
544
- "name": "expandDuration",
545
- "type": "uint256"
546
- }
547
- ],
548
- "internalType": "struct Structs.TokenLimit",
549
- "name": "borrowableToken1",
550
- "type": "tuple"
551
- }
552
- ],
553
- "internalType": "struct Structs.DexLimits",
554
- "name": "limits",
555
- "type": "tuple"
556
330
  }
557
331
  ],
558
332
  "internalType": "struct Structs.PoolWithReserves[]",
@@ -747,115 +521,6 @@
747
521
  "stateMutability": "nonpayable",
748
522
  "type": "function"
749
523
  },
750
- {
751
- "inputs": [
752
- {
753
- "internalType": "address",
754
- "name": "dex_",
755
- "type": "address"
756
- }
757
- ],
758
- "name": "getDexLimits",
759
- "outputs": [
760
- {
761
- "components": [
762
- {
763
- "components": [
764
- {
765
- "internalType": "uint256",
766
- "name": "available",
767
- "type": "uint256"
768
- },
769
- {
770
- "internalType": "uint256",
771
- "name": "expandsTo",
772
- "type": "uint256"
773
- },
774
- {
775
- "internalType": "uint256",
776
- "name": "expandDuration",
777
- "type": "uint256"
778
- }
779
- ],
780
- "internalType": "struct Structs.TokenLimit",
781
- "name": "withdrawableToken0",
782
- "type": "tuple"
783
- },
784
- {
785
- "components": [
786
- {
787
- "internalType": "uint256",
788
- "name": "available",
789
- "type": "uint256"
790
- },
791
- {
792
- "internalType": "uint256",
793
- "name": "expandsTo",
794
- "type": "uint256"
795
- },
796
- {
797
- "internalType": "uint256",
798
- "name": "expandDuration",
799
- "type": "uint256"
800
- }
801
- ],
802
- "internalType": "struct Structs.TokenLimit",
803
- "name": "withdrawableToken1",
804
- "type": "tuple"
805
- },
806
- {
807
- "components": [
808
- {
809
- "internalType": "uint256",
810
- "name": "available",
811
- "type": "uint256"
812
- },
813
- {
814
- "internalType": "uint256",
815
- "name": "expandsTo",
816
- "type": "uint256"
817
- },
818
- {
819
- "internalType": "uint256",
820
- "name": "expandDuration",
821
- "type": "uint256"
822
- }
823
- ],
824
- "internalType": "struct Structs.TokenLimit",
825
- "name": "borrowableToken0",
826
- "type": "tuple"
827
- },
828
- {
829
- "components": [
830
- {
831
- "internalType": "uint256",
832
- "name": "available",
833
- "type": "uint256"
834
- },
835
- {
836
- "internalType": "uint256",
837
- "name": "expandsTo",
838
- "type": "uint256"
839
- },
840
- {
841
- "internalType": "uint256",
842
- "name": "expandDuration",
843
- "type": "uint256"
844
- }
845
- ],
846
- "internalType": "struct Structs.TokenLimit",
847
- "name": "borrowableToken1",
848
- "type": "tuple"
849
- }
850
- ],
851
- "internalType": "struct Structs.DexLimits",
852
- "name": "limits_",
853
- "type": "tuple"
854
- }
855
- ],
856
- "stateMutability": "view",
857
- "type": "function"
858
- },
859
524
  {
860
525
  "inputs": [
861
526
  {
@@ -1255,101 +920,6 @@
1255
920
  "internalType": "struct IFluidDexT1.DebtReserves",
1256
921
  "name": "debtReserves",
1257
922
  "type": "tuple"
1258
- },
1259
- {
1260
- "components": [
1261
- {
1262
- "components": [
1263
- {
1264
- "internalType": "uint256",
1265
- "name": "available",
1266
- "type": "uint256"
1267
- },
1268
- {
1269
- "internalType": "uint256",
1270
- "name": "expandsTo",
1271
- "type": "uint256"
1272
- },
1273
- {
1274
- "internalType": "uint256",
1275
- "name": "expandDuration",
1276
- "type": "uint256"
1277
- }
1278
- ],
1279
- "internalType": "struct Structs.TokenLimit",
1280
- "name": "withdrawableToken0",
1281
- "type": "tuple"
1282
- },
1283
- {
1284
- "components": [
1285
- {
1286
- "internalType": "uint256",
1287
- "name": "available",
1288
- "type": "uint256"
1289
- },
1290
- {
1291
- "internalType": "uint256",
1292
- "name": "expandsTo",
1293
- "type": "uint256"
1294
- },
1295
- {
1296
- "internalType": "uint256",
1297
- "name": "expandDuration",
1298
- "type": "uint256"
1299
- }
1300
- ],
1301
- "internalType": "struct Structs.TokenLimit",
1302
- "name": "withdrawableToken1",
1303
- "type": "tuple"
1304
- },
1305
- {
1306
- "components": [
1307
- {
1308
- "internalType": "uint256",
1309
- "name": "available",
1310
- "type": "uint256"
1311
- },
1312
- {
1313
- "internalType": "uint256",
1314
- "name": "expandsTo",
1315
- "type": "uint256"
1316
- },
1317
- {
1318
- "internalType": "uint256",
1319
- "name": "expandDuration",
1320
- "type": "uint256"
1321
- }
1322
- ],
1323
- "internalType": "struct Structs.TokenLimit",
1324
- "name": "borrowableToken0",
1325
- "type": "tuple"
1326
- },
1327
- {
1328
- "components": [
1329
- {
1330
- "internalType": "uint256",
1331
- "name": "available",
1332
- "type": "uint256"
1333
- },
1334
- {
1335
- "internalType": "uint256",
1336
- "name": "expandsTo",
1337
- "type": "uint256"
1338
- },
1339
- {
1340
- "internalType": "uint256",
1341
- "name": "expandDuration",
1342
- "type": "uint256"
1343
- }
1344
- ],
1345
- "internalType": "struct Structs.TokenLimit",
1346
- "name": "borrowableToken1",
1347
- "type": "tuple"
1348
- }
1349
- ],
1350
- "internalType": "struct Structs.DexLimits",
1351
- "name": "limits",
1352
- "type": "tuple"
1353
923
  }
1354
924
  ],
1355
925
  "internalType": "struct Structs.PoolWithReserves",
@@ -1361,13 +931,7 @@
1361
931
  "type": "function"
1362
932
  },
1363
933
  {
1364
- "inputs": [
1365
- {
1366
- "internalType": "address",
1367
- "name": "pool_",
1368
- "type": "address"
1369
- }
1370
- ],
934
+ "inputs": [],
1371
935
  "name": "getPoolReservesAdjusted",
1372
936
  "outputs": [
1373
937
  {
@@ -1455,106 +1019,11 @@
1455
1019
  "internalType": "struct IFluidDexT1.DebtReserves",
1456
1020
  "name": "debtReserves",
1457
1021
  "type": "tuple"
1458
- },
1459
- {
1460
- "components": [
1461
- {
1462
- "components": [
1463
- {
1464
- "internalType": "uint256",
1465
- "name": "available",
1466
- "type": "uint256"
1467
- },
1468
- {
1469
- "internalType": "uint256",
1470
- "name": "expandsTo",
1471
- "type": "uint256"
1472
- },
1473
- {
1474
- "internalType": "uint256",
1475
- "name": "expandDuration",
1476
- "type": "uint256"
1477
- }
1478
- ],
1479
- "internalType": "struct Structs.TokenLimit",
1480
- "name": "withdrawableToken0",
1481
- "type": "tuple"
1482
- },
1483
- {
1484
- "components": [
1485
- {
1486
- "internalType": "uint256",
1487
- "name": "available",
1488
- "type": "uint256"
1489
- },
1490
- {
1491
- "internalType": "uint256",
1492
- "name": "expandsTo",
1493
- "type": "uint256"
1494
- },
1495
- {
1496
- "internalType": "uint256",
1497
- "name": "expandDuration",
1498
- "type": "uint256"
1499
- }
1500
- ],
1501
- "internalType": "struct Structs.TokenLimit",
1502
- "name": "withdrawableToken1",
1503
- "type": "tuple"
1504
- },
1505
- {
1506
- "components": [
1507
- {
1508
- "internalType": "uint256",
1509
- "name": "available",
1510
- "type": "uint256"
1511
- },
1512
- {
1513
- "internalType": "uint256",
1514
- "name": "expandsTo",
1515
- "type": "uint256"
1516
- },
1517
- {
1518
- "internalType": "uint256",
1519
- "name": "expandDuration",
1520
- "type": "uint256"
1521
- }
1522
- ],
1523
- "internalType": "struct Structs.TokenLimit",
1524
- "name": "borrowableToken0",
1525
- "type": "tuple"
1526
- },
1527
- {
1528
- "components": [
1529
- {
1530
- "internalType": "uint256",
1531
- "name": "available",
1532
- "type": "uint256"
1533
- },
1534
- {
1535
- "internalType": "uint256",
1536
- "name": "expandsTo",
1537
- "type": "uint256"
1538
- },
1539
- {
1540
- "internalType": "uint256",
1541
- "name": "expandDuration",
1542
- "type": "uint256"
1543
- }
1544
- ],
1545
- "internalType": "struct Structs.TokenLimit",
1546
- "name": "borrowableToken1",
1547
- "type": "tuple"
1548
- }
1549
- ],
1550
- "internalType": "struct Structs.DexLimits",
1551
- "name": "limits",
1552
- "type": "tuple"
1553
1022
  }
1554
1023
  ],
1555
- "internalType": "struct Structs.PoolWithReserves",
1024
+ "internalType": "struct Structs.PoolWithReserves[]",
1556
1025
  "name": "poolReserves_",
1557
- "type": "tuple"
1026
+ "type": "tuple[]"
1558
1027
  }
1559
1028
  ],
1560
1029
  "stateMutability": "nonpayable",
@@ -1679,101 +1148,6 @@
1679
1148
  "internalType": "struct IFluidDexT1.DebtReserves",
1680
1149
  "name": "debtReserves",
1681
1150
  "type": "tuple"
1682
- },
1683
- {
1684
- "components": [
1685
- {
1686
- "components": [
1687
- {
1688
- "internalType": "uint256",
1689
- "name": "available",
1690
- "type": "uint256"
1691
- },
1692
- {
1693
- "internalType": "uint256",
1694
- "name": "expandsTo",
1695
- "type": "uint256"
1696
- },
1697
- {
1698
- "internalType": "uint256",
1699
- "name": "expandDuration",
1700
- "type": "uint256"
1701
- }
1702
- ],
1703
- "internalType": "struct Structs.TokenLimit",
1704
- "name": "withdrawableToken0",
1705
- "type": "tuple"
1706
- },
1707
- {
1708
- "components": [
1709
- {
1710
- "internalType": "uint256",
1711
- "name": "available",
1712
- "type": "uint256"
1713
- },
1714
- {
1715
- "internalType": "uint256",
1716
- "name": "expandsTo",
1717
- "type": "uint256"
1718
- },
1719
- {
1720
- "internalType": "uint256",
1721
- "name": "expandDuration",
1722
- "type": "uint256"
1723
- }
1724
- ],
1725
- "internalType": "struct Structs.TokenLimit",
1726
- "name": "withdrawableToken1",
1727
- "type": "tuple"
1728
- },
1729
- {
1730
- "components": [
1731
- {
1732
- "internalType": "uint256",
1733
- "name": "available",
1734
- "type": "uint256"
1735
- },
1736
- {
1737
- "internalType": "uint256",
1738
- "name": "expandsTo",
1739
- "type": "uint256"
1740
- },
1741
- {
1742
- "internalType": "uint256",
1743
- "name": "expandDuration",
1744
- "type": "uint256"
1745
- }
1746
- ],
1747
- "internalType": "struct Structs.TokenLimit",
1748
- "name": "borrowableToken0",
1749
- "type": "tuple"
1750
- },
1751
- {
1752
- "components": [
1753
- {
1754
- "internalType": "uint256",
1755
- "name": "available",
1756
- "type": "uint256"
1757
- },
1758
- {
1759
- "internalType": "uint256",
1760
- "name": "expandsTo",
1761
- "type": "uint256"
1762
- },
1763
- {
1764
- "internalType": "uint256",
1765
- "name": "expandDuration",
1766
- "type": "uint256"
1767
- }
1768
- ],
1769
- "internalType": "struct Structs.TokenLimit",
1770
- "name": "borrowableToken1",
1771
- "type": "tuple"
1772
- }
1773
- ],
1774
- "internalType": "struct Structs.DexLimits",
1775
- "name": "limits",
1776
- "type": "tuple"
1777
1151
  }
1778
1152
  ],
1779
1153
  "internalType": "struct Structs.PoolWithReserves[]",
@@ -1785,13 +1159,7 @@
1785
1159
  "type": "function"
1786
1160
  },
1787
1161
  {
1788
- "inputs": [
1789
- {
1790
- "internalType": "address[]",
1791
- "name": "pools_",
1792
- "type": "address[]"
1793
- }
1794
- ],
1162
+ "inputs": [],
1795
1163
  "name": "getPoolsReservesAdjusted",
1796
1164
  "outputs": [
1797
1165
  {
@@ -1879,101 +1247,6 @@
1879
1247
  "internalType": "struct IFluidDexT1.DebtReserves",
1880
1248
  "name": "debtReserves",
1881
1249
  "type": "tuple"
1882
- },
1883
- {
1884
- "components": [
1885
- {
1886
- "components": [
1887
- {
1888
- "internalType": "uint256",
1889
- "name": "available",
1890
- "type": "uint256"
1891
- },
1892
- {
1893
- "internalType": "uint256",
1894
- "name": "expandsTo",
1895
- "type": "uint256"
1896
- },
1897
- {
1898
- "internalType": "uint256",
1899
- "name": "expandDuration",
1900
- "type": "uint256"
1901
- }
1902
- ],
1903
- "internalType": "struct Structs.TokenLimit",
1904
- "name": "withdrawableToken0",
1905
- "type": "tuple"
1906
- },
1907
- {
1908
- "components": [
1909
- {
1910
- "internalType": "uint256",
1911
- "name": "available",
1912
- "type": "uint256"
1913
- },
1914
- {
1915
- "internalType": "uint256",
1916
- "name": "expandsTo",
1917
- "type": "uint256"
1918
- },
1919
- {
1920
- "internalType": "uint256",
1921
- "name": "expandDuration",
1922
- "type": "uint256"
1923
- }
1924
- ],
1925
- "internalType": "struct Structs.TokenLimit",
1926
- "name": "withdrawableToken1",
1927
- "type": "tuple"
1928
- },
1929
- {
1930
- "components": [
1931
- {
1932
- "internalType": "uint256",
1933
- "name": "available",
1934
- "type": "uint256"
1935
- },
1936
- {
1937
- "internalType": "uint256",
1938
- "name": "expandsTo",
1939
- "type": "uint256"
1940
- },
1941
- {
1942
- "internalType": "uint256",
1943
- "name": "expandDuration",
1944
- "type": "uint256"
1945
- }
1946
- ],
1947
- "internalType": "struct Structs.TokenLimit",
1948
- "name": "borrowableToken0",
1949
- "type": "tuple"
1950
- },
1951
- {
1952
- "components": [
1953
- {
1954
- "internalType": "uint256",
1955
- "name": "available",
1956
- "type": "uint256"
1957
- },
1958
- {
1959
- "internalType": "uint256",
1960
- "name": "expandsTo",
1961
- "type": "uint256"
1962
- },
1963
- {
1964
- "internalType": "uint256",
1965
- "name": "expandDuration",
1966
- "type": "uint256"
1967
- }
1968
- ],
1969
- "internalType": "struct Structs.TokenLimit",
1970
- "name": "borrowableToken1",
1971
- "type": "tuple"
1972
- }
1973
- ],
1974
- "internalType": "struct Structs.DexLimits",
1975
- "name": "limits",
1976
- "type": "tuple"
1977
1250
  }
1978
1251
  ],
1979
1252
  "internalType": "struct Structs.PoolWithReserves[]",