@paraswap/dex-lib 3.11.5 → 3.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/aws.xml +17 -0
- package/.idea/codeStyles/Project.xml +19 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/paraswap-dex-lib.iml +9 -0
- package/.idea/prettier.xml +7 -0
- package/.idea/vcs.xml +6 -0
- package/build/abi/{inception/inception-ineth-pool.json → cables/CablesMainnetRFQ.json} +511 -490
- package/build/abi/fluid-dex/resolver.abi.json +731 -4
- package/build/abi/integral/factory.json +333 -0
- package/build/abi/integral/oracle.json +501 -0
- package/build/abi/integral/pool.json +1041 -0
- package/build/abi/{wombat/pool.json → integral/relayer.json} +720 -473
- package/build/dex/aave-v1/aave-v1.d.ts +1 -2
- package/build/dex/aave-v1/aave-v1.js +0 -23
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/cables/cables.d.ts +59 -0
- package/build/dex/cables/cables.js +599 -0
- package/build/dex/cables/cables.js.map +1 -0
- package/build/dex/cables/config.d.ts +4 -0
- package/build/dex/cables/config.js +15 -0
- package/build/dex/cables/config.js.map +1 -0
- package/build/dex/cables/constants.d.ts +20 -0
- package/build/dex/cables/constants.js +24 -0
- package/build/dex/cables/constants.js.map +1 -0
- package/build/dex/cables/rate-fetcher.d.ts +34 -0
- package/build/dex/cables/rate-fetcher.js +106 -0
- package/build/dex/cables/rate-fetcher.js.map +1 -0
- package/build/dex/cables/types.d.ts +113 -0
- package/build/dex/cables/types.js +19 -0
- package/build/dex/cables/types.js.map +1 -0
- package/build/dex/cables/validators.d.ts +5 -0
- package/build/dex/cables/validators.js +49 -0
- package/build/dex/cables/validators.js.map +1 -0
- package/build/dex/fluid-dex/config.js +1 -1
- package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
- package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
- package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
- package/build/dex/fluid-dex/fluid-dex-liquidity-proxy.js +28 -1
- package/build/dex/fluid-dex/fluid-dex-liquidity-proxy.js.map +1 -1
- package/build/dex/fluid-dex/fluid-dex.d.ts +19 -10
- package/build/dex/fluid-dex/fluid-dex.js +213 -55
- package/build/dex/fluid-dex/fluid-dex.js.map +1 -1
- package/build/dex/fluid-dex/types.d.ts +22 -2
- package/build/dex/integral/config.d.ts +4 -0
- package/build/dex/integral/config.js +20 -0
- package/build/dex/integral/config.js.map +1 -0
- package/build/dex/integral/context.d.ts +40 -0
- package/build/dex/integral/context.js +158 -0
- package/build/dex/integral/context.js.map +1 -0
- package/build/dex/integral/integral-factory.d.ts +24 -0
- package/build/dex/integral/integral-factory.js +95 -0
- package/build/dex/integral/integral-factory.js.map +1 -0
- package/build/dex/integral/integral-pool.d.ts +50 -0
- package/build/dex/integral/integral-pool.js +149 -0
- package/build/dex/integral/integral-pool.js.map +1 -0
- package/build/dex/integral/integral-pricing.d.ts +18 -0
- package/build/dex/integral/integral-pricing.js +114 -0
- package/build/dex/integral/integral-pricing.js.map +1 -0
- package/build/dex/integral/integral-relayer.d.ts +42 -0
- package/build/dex/integral/integral-relayer.js +192 -0
- package/build/dex/integral/integral-relayer.js.map +1 -0
- package/build/dex/integral/integral-token.d.ts +27 -0
- package/build/dex/integral/integral-token.js +59 -0
- package/build/dex/integral/integral-token.js.map +1 -0
- package/build/dex/integral/integral.d.ts +41 -0
- package/build/dex/integral/integral.js +376 -0
- package/build/dex/integral/integral.js.map +1 -0
- package/build/dex/integral/types.d.ts +85 -0
- package/build/dex/integral/types.js +9 -0
- package/build/dex/integral/types.js.map +1 -0
- package/build/dex/integral/utils-e2e.d.ts +9 -0
- package/build/dex/integral/utils-e2e.js +131 -0
- package/build/dex/integral/utils-e2e.js.map +1 -0
- package/build/dex/integral/utils.d.ts +17 -0
- package/build/dex/integral/utils.js +94 -0
- package/build/dex/integral/utils.js.map +1 -0
- package/build/dex/jarvis.d.ts +1 -2
- package/build/dex/jarvis.js +0 -58
- package/build/dex/jarvis.js.map +1 -1
- package/build/dex/platypus/platypus.d.ts +1 -2
- package/build/dex/platypus/platypus.js +0 -45
- package/build/dex/platypus/platypus.js.map +1 -1
- package/build/dex/stable-pool.js +8 -1
- package/build/dex/stable-pool.js.map +1 -1
- package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
- package/build/dex/swaap-v1/swaap-v1.js +0 -14
- package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
- package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
- package/build/dex/trader-joe-v2.1/optimizer.js +47 -0
- package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
- package/build/dex/zerox/index.d.ts +26 -4
- package/build/dex/zerox/index.js +42 -50
- package/build/dex/zerox/index.js.map +1 -1
- package/build/dex/zerox/types.d.ts +0 -29
- package/build/dex/zerox/types.js +1 -8
- package/build/dex/zerox/types.js.map +1 -1
- package/build/executor/Executor03BytecodeBuilder.js +8 -3
- package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/fluid-dex/resolver.abi.json +731 -4
- package/src/dex/fluid-dex/config.ts +1 -1
- package/src/dex/fluid-dex/fluid-dex-e2e.test.ts +157 -6
- package/src/dex/fluid-dex/fluid-dex-events.test.ts +2 -4
- package/src/dex/fluid-dex/fluid-dex-integration.test.ts +69 -9
- package/src/dex/fluid-dex/fluid-dex-liquidity-proxy.ts +33 -0
- package/src/dex/fluid-dex/fluid-dex.ts +311 -89
- package/src/dex/fluid-dex/types.ts +25 -1
- package/src/executor/Executor03BytecodeBuilder.ts +10 -2
- package/.vscode/launch.json +0 -53
- package/.vscode/settings.json +0 -2
- package/.vscode/tasks.json +0 -15
- package/build/abi/inception/inception-ratio-feed.json +0 -329
- package/build/abi/inception/inception-vault.json +0 -991
- package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
- package/build/dex/aave-v2/tokens-avalanche.json +0 -44
- package/build/dex/aave-v2/tokens-mainnet.json +0 -188
- package/build/dex/aave-v2/tokens-polygon.json +0 -44
- package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
- package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
- package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
- package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
- package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
- package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
- package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
- package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
- package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
- package/build/dex/balancer-v3/balancer-v3-pool.d.ts +0 -76
- package/build/dex/balancer-v3/balancer-v3-pool.js +0 -383
- package/build/dex/balancer-v3/balancer-v3-pool.js.map +0 -1
- package/build/dex/balancer-v3/balancer-v3.d.ts +0 -57
- package/build/dex/balancer-v3/balancer-v3.js +0 -373
- package/build/dex/balancer-v3/balancer-v3.js.map +0 -1
- package/build/dex/balancer-v3/config.d.ts +0 -8
- package/build/dex/balancer-v3/config.js +0 -24
- package/build/dex/balancer-v3/config.js.map +0 -1
- package/build/dex/balancer-v3/getOnChainState.d.ts +0 -10
- package/build/dex/balancer-v3/getOnChainState.js +0 -158
- package/build/dex/balancer-v3/getOnChainState.js.map +0 -1
- package/build/dex/balancer-v3/getPoolsApi.d.ts +0 -2
- package/build/dex/balancer-v3/getPoolsApi.js +0 -81
- package/build/dex/balancer-v3/getPoolsApi.js.map +0 -1
- package/build/dex/balancer-v3/getTopPoolsApi.d.ts +0 -13
- package/build/dex/balancer-v3/getTopPoolsApi.js +0 -62
- package/build/dex/balancer-v3/getTopPoolsApi.js.map +0 -1
- package/build/dex/balancer-v3/types.d.ts +0 -63
- package/build/dex/balancer-v3/types.js +0 -3
- package/build/dex/balancer-v3/types.js.map +0 -1
- package/build/dex/inception/config.d.ts +0 -4
- package/build/dex/inception/config.js +0 -109
- package/build/dex/inception/config.js.map +0 -1
- package/build/dex/inception/inception-event-pool.d.ts +0 -16
- package/build/dex/inception/inception-event-pool.js +0 -49
- package/build/dex/inception/inception-event-pool.js.map +0 -1
- package/build/dex/inception/inception.d.ts +0 -43
- package/build/dex/inception/inception.js +0 -180
- package/build/dex/inception/inception.js.map +0 -1
- package/build/dex/inception/tokens.d.ts +0 -9
- package/build/dex/inception/tokens.js +0 -28
- package/build/dex/inception/tokens.js.map +0 -1
- package/build/dex/inception/types.d.ts +0 -22
- package/build/dex/inception/types.js +0 -3
- package/build/dex/inception/types.js.map +0 -1
- package/build/dex/inception/utils.d.ts +0 -7
- package/build/dex/inception/utils.js +0 -58
- package/build/dex/inception/utils.js.map +0 -1
- package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
- package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
- package/build/dex/maker-psm/scripts/validate-state.js +0 -185
- package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
- package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
- package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
- package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
- package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
- package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
- package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
- package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
- package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
|
@@ -5,6 +5,16 @@
|
|
|
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"
|
|
8
18
|
}
|
|
9
19
|
],
|
|
10
20
|
"stateMutability": "nonpayable",
|
|
@@ -23,6 +33,32 @@
|
|
|
23
33
|
"stateMutability": "view",
|
|
24
34
|
"type": "function"
|
|
25
35
|
},
|
|
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
|
+
},
|
|
26
62
|
{
|
|
27
63
|
"inputs": [
|
|
28
64
|
{
|
|
@@ -228,6 +264,101 @@
|
|
|
228
264
|
"internalType": "struct IFluidDexT1.DebtReserves",
|
|
229
265
|
"name": "debtReserves",
|
|
230
266
|
"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"
|
|
231
362
|
}
|
|
232
363
|
],
|
|
233
364
|
"internalType": "struct Structs.PoolWithReserves[]",
|
|
@@ -327,6 +458,101 @@
|
|
|
327
458
|
"internalType": "struct IFluidDexT1.DebtReserves",
|
|
328
459
|
"name": "debtReserves",
|
|
329
460
|
"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"
|
|
330
556
|
}
|
|
331
557
|
],
|
|
332
558
|
"internalType": "struct Structs.PoolWithReserves[]",
|
|
@@ -521,6 +747,115 @@
|
|
|
521
747
|
"stateMutability": "nonpayable",
|
|
522
748
|
"type": "function"
|
|
523
749
|
},
|
|
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
|
+
},
|
|
524
859
|
{
|
|
525
860
|
"inputs": [
|
|
526
861
|
{
|
|
@@ -920,6 +1255,101 @@
|
|
|
920
1255
|
"internalType": "struct IFluidDexT1.DebtReserves",
|
|
921
1256
|
"name": "debtReserves",
|
|
922
1257
|
"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"
|
|
923
1353
|
}
|
|
924
1354
|
],
|
|
925
1355
|
"internalType": "struct Structs.PoolWithReserves",
|
|
@@ -931,7 +1361,13 @@
|
|
|
931
1361
|
"type": "function"
|
|
932
1362
|
},
|
|
933
1363
|
{
|
|
934
|
-
"inputs": [
|
|
1364
|
+
"inputs": [
|
|
1365
|
+
{
|
|
1366
|
+
"internalType": "address",
|
|
1367
|
+
"name": "pool_",
|
|
1368
|
+
"type": "address"
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
935
1371
|
"name": "getPoolReservesAdjusted",
|
|
936
1372
|
"outputs": [
|
|
937
1373
|
{
|
|
@@ -1019,11 +1455,106 @@
|
|
|
1019
1455
|
"internalType": "struct IFluidDexT1.DebtReserves",
|
|
1020
1456
|
"name": "debtReserves",
|
|
1021
1457
|
"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"
|
|
1022
1553
|
}
|
|
1023
1554
|
],
|
|
1024
|
-
"internalType": "struct Structs.PoolWithReserves
|
|
1555
|
+
"internalType": "struct Structs.PoolWithReserves",
|
|
1025
1556
|
"name": "poolReserves_",
|
|
1026
|
-
"type": "tuple
|
|
1557
|
+
"type": "tuple"
|
|
1027
1558
|
}
|
|
1028
1559
|
],
|
|
1029
1560
|
"stateMutability": "nonpayable",
|
|
@@ -1148,6 +1679,101 @@
|
|
|
1148
1679
|
"internalType": "struct IFluidDexT1.DebtReserves",
|
|
1149
1680
|
"name": "debtReserves",
|
|
1150
1681
|
"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"
|
|
1151
1777
|
}
|
|
1152
1778
|
],
|
|
1153
1779
|
"internalType": "struct Structs.PoolWithReserves[]",
|
|
@@ -1159,7 +1785,13 @@
|
|
|
1159
1785
|
"type": "function"
|
|
1160
1786
|
},
|
|
1161
1787
|
{
|
|
1162
|
-
"inputs": [
|
|
1788
|
+
"inputs": [
|
|
1789
|
+
{
|
|
1790
|
+
"internalType": "address[]",
|
|
1791
|
+
"name": "pools_",
|
|
1792
|
+
"type": "address[]"
|
|
1793
|
+
}
|
|
1794
|
+
],
|
|
1163
1795
|
"name": "getPoolsReservesAdjusted",
|
|
1164
1796
|
"outputs": [
|
|
1165
1797
|
{
|
|
@@ -1247,6 +1879,101 @@
|
|
|
1247
1879
|
"internalType": "struct IFluidDexT1.DebtReserves",
|
|
1248
1880
|
"name": "debtReserves",
|
|
1249
1881
|
"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"
|
|
1250
1977
|
}
|
|
1251
1978
|
],
|
|
1252
1979
|
"internalType": "struct Structs.PoolWithReserves[]",
|