@morpho-org/morpho-sdk 5.8.0 → 5.9.0

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 (66) hide show
  1. package/README.md +4 -0
  2. package/lib/cjs/abis.d.ts +543 -0
  3. package/lib/cjs/abis.js +738 -0
  4. package/lib/cjs/actions/blue/borrow.d.ts +5 -2
  5. package/lib/cjs/actions/blue/borrow.js +1 -1
  6. package/lib/cjs/actions/blue/refinance.d.ts +7 -2
  7. package/lib/cjs/actions/blue/refinance.js +3 -1
  8. package/lib/cjs/actions/blue/supplyCollateralBorrow.d.ts +6 -2
  9. package/lib/cjs/actions/blue/supplyCollateralBorrow.js +2 -1
  10. package/lib/cjs/actions/blue/withdraw.d.ts +2 -1
  11. package/lib/cjs/actions/blue/withdraw.js +1 -1
  12. package/lib/cjs/blue/types.d.ts +3 -1
  13. package/lib/cjs/blue/utils.d.ts +3 -1
  14. package/lib/cjs/blue/utils.js +1 -0
  15. package/lib/cjs/bundler/actions.d.ts +2 -0
  16. package/lib/cjs/bundler/actions.js +2 -0
  17. package/lib/cjs/bundler/types.d.ts +10 -1
  18. package/lib/cjs/entities/blue/blue.d.ts +30 -5
  19. package/lib/cjs/entities/blue/blue.js +8 -2
  20. package/lib/cjs/entities/vaultV1/vaultV1.js +4 -12
  21. package/lib/cjs/entities/vaultV1ReallocationData.d.ts +18 -3
  22. package/lib/cjs/entities/vaultV1ReallocationData.js +11 -1
  23. package/lib/cjs/entities/vaultV2/vaultV2.js +6 -18
  24. package/lib/cjs/helpers/computeVaultV1Reallocations.d.ts +4 -1
  25. package/lib/cjs/helpers/computeVaultV1Reallocations.js +4 -1
  26. package/lib/cjs/helpers/validate.d.ts +2 -0
  27. package/lib/cjs/helpers/validate.js +2 -0
  28. package/lib/cjs/types/error.d.ts +34 -6
  29. package/lib/cjs/types/error.js +34 -6
  30. package/lib/cjs/types/sharedLiquidity.d.ts +26 -3
  31. package/lib/cjs/types.d.ts +3 -1
  32. package/lib/cjs/utils.d.ts +3 -1
  33. package/lib/cjs/utils.js +1 -0
  34. package/lib/esm/abis.d.ts +543 -0
  35. package/lib/esm/abis.js +737 -0
  36. package/lib/esm/actions/blue/borrow.d.ts +5 -2
  37. package/lib/esm/actions/blue/borrow.js +1 -1
  38. package/lib/esm/actions/blue/refinance.d.ts +7 -2
  39. package/lib/esm/actions/blue/refinance.js +3 -1
  40. package/lib/esm/actions/blue/supplyCollateralBorrow.d.ts +6 -2
  41. package/lib/esm/actions/blue/supplyCollateralBorrow.js +2 -1
  42. package/lib/esm/actions/blue/withdraw.d.ts +2 -1
  43. package/lib/esm/actions/blue/withdraw.js +1 -1
  44. package/lib/esm/blue/types.d.ts +3 -1
  45. package/lib/esm/blue/utils.d.ts +3 -1
  46. package/lib/esm/blue/utils.js +3 -1
  47. package/lib/esm/bundler/actions.d.ts +2 -0
  48. package/lib/esm/bundler/actions.js +2 -0
  49. package/lib/esm/bundler/types.d.ts +10 -1
  50. package/lib/esm/entities/blue/blue.d.ts +30 -5
  51. package/lib/esm/entities/blue/blue.js +8 -2
  52. package/lib/esm/entities/vaultV1/vaultV1.js +4 -12
  53. package/lib/esm/entities/vaultV1ReallocationData.d.ts +18 -3
  54. package/lib/esm/entities/vaultV1ReallocationData.js +13 -2
  55. package/lib/esm/entities/vaultV2/vaultV2.js +7 -19
  56. package/lib/esm/helpers/computeVaultV1Reallocations.d.ts +4 -1
  57. package/lib/esm/helpers/computeVaultV1Reallocations.js +4 -1
  58. package/lib/esm/helpers/validate.d.ts +2 -0
  59. package/lib/esm/helpers/validate.js +2 -0
  60. package/lib/esm/types/error.d.ts +34 -6
  61. package/lib/esm/types/error.js +34 -6
  62. package/lib/esm/types/sharedLiquidity.d.ts +26 -3
  63. package/lib/esm/types.d.ts +3 -1
  64. package/lib/esm/utils.d.ts +3 -1
  65. package/lib/esm/utils.js +3 -1
  66. package/package.json +4 -4
package/lib/cjs/abis.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compoundV3MigrationAdapterAbi = exports.compoundV2MigrationAdapterAbi = exports.aaveV3OptimizerMigrationAdapterAbi = exports.aaveV3MigrationAdapterAbi = exports.aaveV2MigrationAdapterAbi = exports.erc20WrapperAdapterAbi = exports.paraswapAdapterAbi = exports.ethereumGeneralAdapter1Abi = exports.generalAdapter1Abi = exports.coreAdapterAbi = exports.bundler3Abi = exports.vaultExitBundlesV1Abi = exports.setterRatifierAbi = exports.midnightSetterRatifierAbi = exports.midnightBundlesAbi = exports.midnightAbi = exports.ecrecoverRatifierAbi = exports.midnightEcrecoverRatifierAbi = exports.wstEthAbi = exports.wrappedBackedTokenAbi = exports.whitelistControllerAggregatorV2Abi = exports.vaultV2FactoryAbi = exports.vaultV2BluePublicAllocatorAbi = exports.vaultV2Abi = exports.vaultV1PublicAllocatorAbi = exports.vaultV1AdapterFactoryAbi = exports.vaultV1AdapterAbi = exports.publicAllocatorAbi = exports.preLiquidationFactoryAbi = exports.bluePreLiquidationFactoryAbi = exports.preLiquidationAbi = exports.bluePreLiquidationAbi = exports.permit2Abi = exports.permissionedErc20WrapperAbi = exports.morphoVaultV1AdapterFactoryAbi = exports.morphoVaultV1AdapterAbi = exports.morphoMarketV1AdapterV2FactoryAbi = exports.morphoMarketV1AdapterV2Abi = exports.morphoMarketV1AdapterFactoryAbi = exports.morphoMarketV1AdapterAbi = exports.metaMorphoFactoryAbi = exports.metaMorphoAbi = exports.erc5267Abi = exports.erc2612Abi = exports.blueOracleAbi = exports.blueAbi = exports.adaptiveCurveIrmAbi = exports.blueAdaptiveCurveIrmAbi = exports.marketParamsAbi = exports.blueMarketParamsAbi = void 0;
4
+ exports.blueBundlesV1Abi = void 0;
4
5
  var blue_sdk_1 = require("@morpho-org/blue-sdk");
5
6
  Object.defineProperty(exports, "blueMarketParamsAbi", { enumerable: true, get: function () { return blue_sdk_1.marketParamsAbi; } });
6
7
  /** @deprecated Use `blueMarketParamsAbi` or the raw `/blue/abis` subpath. */
@@ -2134,3 +2135,740 @@ exports.compoundV3MigrationAdapterAbi = [
2134
2135
  stateMutability: "nonpayable",
2135
2136
  },
2136
2137
  ];
2138
+ /**
2139
+ * Pinned ABI JSON for the five BlueBundlesV1 entrypoints used by high-level Morpho Blue writes.
2140
+ *
2141
+ * Source: `morpho-org/bundles` commit `dceb05da1c730424e6b36caf445dff808a2d5007`,
2142
+ * `src/blue/interfaces/IBlueBundlesV1.sol`, with `Signature` pinned by that commit's
2143
+ * `morpho-blue` submodule at `1478e9cfe1b4d514f80682b3b60e4e12ff3ee45a` (`v` is `uint8`).
2144
+ *
2145
+ * @see https://github.com/morpho-org/bundles/blob/dceb05da1c730424e6b36caf445dff808a2d5007/src/blue/interfaces/IBlueBundlesV1.sol
2146
+ * @example
2147
+ * ```ts
2148
+ * import { blueBundlesV1Abi } from "@morpho-org/morpho-sdk/abis";
2149
+ *
2150
+ * console.log(blueBundlesV1Abi.length);
2151
+ * ```
2152
+ */
2153
+ exports.blueBundlesV1Abi = [
2154
+ {
2155
+ type: "function",
2156
+ name: "blueBundlesV1SupplyCollateralAndBorrow",
2157
+ stateMutability: "payable",
2158
+ inputs: [
2159
+ {
2160
+ name: "marketParams",
2161
+ type: "tuple",
2162
+ components: [
2163
+ {
2164
+ name: "loanToken",
2165
+ type: "address",
2166
+ },
2167
+ {
2168
+ name: "collateralToken",
2169
+ type: "address",
2170
+ },
2171
+ {
2172
+ name: "oracle",
2173
+ type: "address",
2174
+ },
2175
+ {
2176
+ name: "irm",
2177
+ type: "address",
2178
+ },
2179
+ {
2180
+ name: "lltv",
2181
+ type: "uint256",
2182
+ },
2183
+ ],
2184
+ },
2185
+ {
2186
+ name: "collateralAssets",
2187
+ type: "uint256",
2188
+ },
2189
+ {
2190
+ name: "borrowAssets",
2191
+ type: "uint256",
2192
+ },
2193
+ {
2194
+ name: "maxLtv",
2195
+ type: "uint256",
2196
+ },
2197
+ {
2198
+ name: "collateralPermit",
2199
+ type: "tuple",
2200
+ components: [
2201
+ {
2202
+ name: "kind",
2203
+ type: "uint8",
2204
+ },
2205
+ {
2206
+ name: "data",
2207
+ type: "bytes",
2208
+ },
2209
+ ],
2210
+ },
2211
+ {
2212
+ name: "signedAuthorization",
2213
+ type: "tuple",
2214
+ components: [
2215
+ {
2216
+ name: "signature",
2217
+ type: "tuple",
2218
+ components: [
2219
+ {
2220
+ name: "v",
2221
+ type: "uint8",
2222
+ },
2223
+ {
2224
+ name: "r",
2225
+ type: "bytes32",
2226
+ },
2227
+ {
2228
+ name: "s",
2229
+ type: "bytes32",
2230
+ },
2231
+ ],
2232
+ },
2233
+ {
2234
+ name: "nonce",
2235
+ type: "uint256",
2236
+ },
2237
+ {
2238
+ name: "deadline",
2239
+ type: "uint256",
2240
+ },
2241
+ ],
2242
+ },
2243
+ {
2244
+ name: "reallocations",
2245
+ type: "tuple[]",
2246
+ components: [
2247
+ {
2248
+ name: "vault",
2249
+ type: "address",
2250
+ },
2251
+ {
2252
+ name: "adapter",
2253
+ type: "address",
2254
+ },
2255
+ {
2256
+ name: "marketParams",
2257
+ type: "tuple",
2258
+ components: [
2259
+ {
2260
+ name: "loanToken",
2261
+ type: "address",
2262
+ },
2263
+ {
2264
+ name: "collateralToken",
2265
+ type: "address",
2266
+ },
2267
+ {
2268
+ name: "oracle",
2269
+ type: "address",
2270
+ },
2271
+ {
2272
+ name: "irm",
2273
+ type: "address",
2274
+ },
2275
+ {
2276
+ name: "lltv",
2277
+ type: "uint256",
2278
+ },
2279
+ ],
2280
+ },
2281
+ {
2282
+ name: "fromIdle",
2283
+ type: "bool",
2284
+ },
2285
+ {
2286
+ name: "sourceAdapter",
2287
+ type: "address",
2288
+ },
2289
+ {
2290
+ name: "sourceMarketParams",
2291
+ type: "tuple",
2292
+ components: [
2293
+ {
2294
+ name: "loanToken",
2295
+ type: "address",
2296
+ },
2297
+ {
2298
+ name: "collateralToken",
2299
+ type: "address",
2300
+ },
2301
+ {
2302
+ name: "oracle",
2303
+ type: "address",
2304
+ },
2305
+ {
2306
+ name: "irm",
2307
+ type: "address",
2308
+ },
2309
+ {
2310
+ name: "lltv",
2311
+ type: "uint256",
2312
+ },
2313
+ ],
2314
+ },
2315
+ {
2316
+ name: "assets",
2317
+ type: "uint128",
2318
+ },
2319
+ {
2320
+ name: "penalty",
2321
+ type: "uint64",
2322
+ },
2323
+ ],
2324
+ },
2325
+ {
2326
+ name: "referralFeePct",
2327
+ type: "uint256",
2328
+ },
2329
+ {
2330
+ name: "referralFeeRecipient",
2331
+ type: "address",
2332
+ },
2333
+ {
2334
+ name: "deadline",
2335
+ type: "uint256",
2336
+ },
2337
+ ],
2338
+ outputs: [],
2339
+ },
2340
+ {
2341
+ type: "function",
2342
+ name: "blueBundlesV1RepayAndWithdrawCollateral",
2343
+ stateMutability: "payable",
2344
+ inputs: [
2345
+ {
2346
+ name: "marketParams",
2347
+ type: "tuple",
2348
+ components: [
2349
+ {
2350
+ name: "loanToken",
2351
+ type: "address",
2352
+ },
2353
+ {
2354
+ name: "collateralToken",
2355
+ type: "address",
2356
+ },
2357
+ {
2358
+ name: "oracle",
2359
+ type: "address",
2360
+ },
2361
+ {
2362
+ name: "irm",
2363
+ type: "address",
2364
+ },
2365
+ {
2366
+ name: "lltv",
2367
+ type: "uint256",
2368
+ },
2369
+ ],
2370
+ },
2371
+ {
2372
+ name: "repayAssets",
2373
+ type: "uint256",
2374
+ },
2375
+ {
2376
+ name: "repayShares",
2377
+ type: "uint256",
2378
+ },
2379
+ {
2380
+ name: "maxRepayAssets",
2381
+ type: "uint256",
2382
+ },
2383
+ {
2384
+ name: "collateralAssets",
2385
+ type: "uint256",
2386
+ },
2387
+ {
2388
+ name: "maxLtv",
2389
+ type: "uint256",
2390
+ },
2391
+ {
2392
+ name: "loanTokenPermit",
2393
+ type: "tuple",
2394
+ components: [
2395
+ {
2396
+ name: "kind",
2397
+ type: "uint8",
2398
+ },
2399
+ {
2400
+ name: "data",
2401
+ type: "bytes",
2402
+ },
2403
+ ],
2404
+ },
2405
+ {
2406
+ name: "signedAuthorization",
2407
+ type: "tuple",
2408
+ components: [
2409
+ {
2410
+ name: "signature",
2411
+ type: "tuple",
2412
+ components: [
2413
+ {
2414
+ name: "v",
2415
+ type: "uint8",
2416
+ },
2417
+ {
2418
+ name: "r",
2419
+ type: "bytes32",
2420
+ },
2421
+ {
2422
+ name: "s",
2423
+ type: "bytes32",
2424
+ },
2425
+ ],
2426
+ },
2427
+ {
2428
+ name: "nonce",
2429
+ type: "uint256",
2430
+ },
2431
+ {
2432
+ name: "deadline",
2433
+ type: "uint256",
2434
+ },
2435
+ ],
2436
+ },
2437
+ {
2438
+ name: "referralFeePct",
2439
+ type: "uint256",
2440
+ },
2441
+ {
2442
+ name: "referralFeeRecipient",
2443
+ type: "address",
2444
+ },
2445
+ {
2446
+ name: "deadline",
2447
+ type: "uint256",
2448
+ },
2449
+ ],
2450
+ outputs: [],
2451
+ },
2452
+ {
2453
+ type: "function",
2454
+ name: "blueBundlesV1Supply",
2455
+ stateMutability: "payable",
2456
+ inputs: [
2457
+ {
2458
+ name: "marketParams",
2459
+ type: "tuple",
2460
+ components: [
2461
+ {
2462
+ name: "loanToken",
2463
+ type: "address",
2464
+ },
2465
+ {
2466
+ name: "collateralToken",
2467
+ type: "address",
2468
+ },
2469
+ {
2470
+ name: "oracle",
2471
+ type: "address",
2472
+ },
2473
+ {
2474
+ name: "irm",
2475
+ type: "address",
2476
+ },
2477
+ {
2478
+ name: "lltv",
2479
+ type: "uint256",
2480
+ },
2481
+ ],
2482
+ },
2483
+ {
2484
+ name: "assets",
2485
+ type: "uint256",
2486
+ },
2487
+ {
2488
+ name: "loanTokenPermit",
2489
+ type: "tuple",
2490
+ components: [
2491
+ {
2492
+ name: "kind",
2493
+ type: "uint8",
2494
+ },
2495
+ {
2496
+ name: "data",
2497
+ type: "bytes",
2498
+ },
2499
+ ],
2500
+ },
2501
+ {
2502
+ name: "referralFeePct",
2503
+ type: "uint256",
2504
+ },
2505
+ {
2506
+ name: "referralFeeRecipient",
2507
+ type: "address",
2508
+ },
2509
+ {
2510
+ name: "deadline",
2511
+ type: "uint256",
2512
+ },
2513
+ ],
2514
+ outputs: [],
2515
+ },
2516
+ {
2517
+ type: "function",
2518
+ name: "blueBundlesV1Withdraw",
2519
+ stateMutability: "nonpayable",
2520
+ inputs: [
2521
+ {
2522
+ name: "marketParams",
2523
+ type: "tuple",
2524
+ components: [
2525
+ {
2526
+ name: "loanToken",
2527
+ type: "address",
2528
+ },
2529
+ {
2530
+ name: "collateralToken",
2531
+ type: "address",
2532
+ },
2533
+ {
2534
+ name: "oracle",
2535
+ type: "address",
2536
+ },
2537
+ {
2538
+ name: "irm",
2539
+ type: "address",
2540
+ },
2541
+ {
2542
+ name: "lltv",
2543
+ type: "uint256",
2544
+ },
2545
+ ],
2546
+ },
2547
+ {
2548
+ name: "withdrawAssets",
2549
+ type: "uint256",
2550
+ },
2551
+ {
2552
+ name: "withdrawShares",
2553
+ type: "uint256",
2554
+ },
2555
+ {
2556
+ name: "signedAuthorization",
2557
+ type: "tuple",
2558
+ components: [
2559
+ {
2560
+ name: "signature",
2561
+ type: "tuple",
2562
+ components: [
2563
+ {
2564
+ name: "v",
2565
+ type: "uint8",
2566
+ },
2567
+ {
2568
+ name: "r",
2569
+ type: "bytes32",
2570
+ },
2571
+ {
2572
+ name: "s",
2573
+ type: "bytes32",
2574
+ },
2575
+ ],
2576
+ },
2577
+ {
2578
+ name: "nonce",
2579
+ type: "uint256",
2580
+ },
2581
+ {
2582
+ name: "deadline",
2583
+ type: "uint256",
2584
+ },
2585
+ ],
2586
+ },
2587
+ {
2588
+ name: "reallocations",
2589
+ type: "tuple[]",
2590
+ components: [
2591
+ {
2592
+ name: "vault",
2593
+ type: "address",
2594
+ },
2595
+ {
2596
+ name: "adapter",
2597
+ type: "address",
2598
+ },
2599
+ {
2600
+ name: "marketParams",
2601
+ type: "tuple",
2602
+ components: [
2603
+ {
2604
+ name: "loanToken",
2605
+ type: "address",
2606
+ },
2607
+ {
2608
+ name: "collateralToken",
2609
+ type: "address",
2610
+ },
2611
+ {
2612
+ name: "oracle",
2613
+ type: "address",
2614
+ },
2615
+ {
2616
+ name: "irm",
2617
+ type: "address",
2618
+ },
2619
+ {
2620
+ name: "lltv",
2621
+ type: "uint256",
2622
+ },
2623
+ ],
2624
+ },
2625
+ {
2626
+ name: "fromIdle",
2627
+ type: "bool",
2628
+ },
2629
+ {
2630
+ name: "sourceAdapter",
2631
+ type: "address",
2632
+ },
2633
+ {
2634
+ name: "sourceMarketParams",
2635
+ type: "tuple",
2636
+ components: [
2637
+ {
2638
+ name: "loanToken",
2639
+ type: "address",
2640
+ },
2641
+ {
2642
+ name: "collateralToken",
2643
+ type: "address",
2644
+ },
2645
+ {
2646
+ name: "oracle",
2647
+ type: "address",
2648
+ },
2649
+ {
2650
+ name: "irm",
2651
+ type: "address",
2652
+ },
2653
+ {
2654
+ name: "lltv",
2655
+ type: "uint256",
2656
+ },
2657
+ ],
2658
+ },
2659
+ {
2660
+ name: "assets",
2661
+ type: "uint128",
2662
+ },
2663
+ {
2664
+ name: "penalty",
2665
+ type: "uint64",
2666
+ },
2667
+ ],
2668
+ },
2669
+ {
2670
+ name: "referralFeePct",
2671
+ type: "uint256",
2672
+ },
2673
+ {
2674
+ name: "referralFeeRecipient",
2675
+ type: "address",
2676
+ },
2677
+ {
2678
+ name: "deadline",
2679
+ type: "uint256",
2680
+ },
2681
+ ],
2682
+ outputs: [],
2683
+ },
2684
+ {
2685
+ type: "function",
2686
+ name: "blueBundlesV1MigrateBorrowPosition",
2687
+ stateMutability: "nonpayable",
2688
+ inputs: [
2689
+ {
2690
+ name: "sourceMarketParams",
2691
+ type: "tuple",
2692
+ components: [
2693
+ {
2694
+ name: "loanToken",
2695
+ type: "address",
2696
+ },
2697
+ {
2698
+ name: "collateralToken",
2699
+ type: "address",
2700
+ },
2701
+ {
2702
+ name: "oracle",
2703
+ type: "address",
2704
+ },
2705
+ {
2706
+ name: "irm",
2707
+ type: "address",
2708
+ },
2709
+ {
2710
+ name: "lltv",
2711
+ type: "uint256",
2712
+ },
2713
+ ],
2714
+ },
2715
+ {
2716
+ name: "destMarketParams",
2717
+ type: "tuple",
2718
+ components: [
2719
+ {
2720
+ name: "loanToken",
2721
+ type: "address",
2722
+ },
2723
+ {
2724
+ name: "collateralToken",
2725
+ type: "address",
2726
+ },
2727
+ {
2728
+ name: "oracle",
2729
+ type: "address",
2730
+ },
2731
+ {
2732
+ name: "irm",
2733
+ type: "address",
2734
+ },
2735
+ {
2736
+ name: "lltv",
2737
+ type: "uint256",
2738
+ },
2739
+ ],
2740
+ },
2741
+ {
2742
+ name: "maxLtv",
2743
+ type: "uint256",
2744
+ },
2745
+ {
2746
+ name: "signedAuthorization",
2747
+ type: "tuple",
2748
+ components: [
2749
+ {
2750
+ name: "signature",
2751
+ type: "tuple",
2752
+ components: [
2753
+ {
2754
+ name: "v",
2755
+ type: "uint8",
2756
+ },
2757
+ {
2758
+ name: "r",
2759
+ type: "bytes32",
2760
+ },
2761
+ {
2762
+ name: "s",
2763
+ type: "bytes32",
2764
+ },
2765
+ ],
2766
+ },
2767
+ {
2768
+ name: "nonce",
2769
+ type: "uint256",
2770
+ },
2771
+ {
2772
+ name: "deadline",
2773
+ type: "uint256",
2774
+ },
2775
+ ],
2776
+ },
2777
+ {
2778
+ name: "reallocations",
2779
+ type: "tuple[]",
2780
+ components: [
2781
+ {
2782
+ name: "vault",
2783
+ type: "address",
2784
+ },
2785
+ {
2786
+ name: "adapter",
2787
+ type: "address",
2788
+ },
2789
+ {
2790
+ name: "marketParams",
2791
+ type: "tuple",
2792
+ components: [
2793
+ {
2794
+ name: "loanToken",
2795
+ type: "address",
2796
+ },
2797
+ {
2798
+ name: "collateralToken",
2799
+ type: "address",
2800
+ },
2801
+ {
2802
+ name: "oracle",
2803
+ type: "address",
2804
+ },
2805
+ {
2806
+ name: "irm",
2807
+ type: "address",
2808
+ },
2809
+ {
2810
+ name: "lltv",
2811
+ type: "uint256",
2812
+ },
2813
+ ],
2814
+ },
2815
+ {
2816
+ name: "fromIdle",
2817
+ type: "bool",
2818
+ },
2819
+ {
2820
+ name: "sourceAdapter",
2821
+ type: "address",
2822
+ },
2823
+ {
2824
+ name: "sourceMarketParams",
2825
+ type: "tuple",
2826
+ components: [
2827
+ {
2828
+ name: "loanToken",
2829
+ type: "address",
2830
+ },
2831
+ {
2832
+ name: "collateralToken",
2833
+ type: "address",
2834
+ },
2835
+ {
2836
+ name: "oracle",
2837
+ type: "address",
2838
+ },
2839
+ {
2840
+ name: "irm",
2841
+ type: "address",
2842
+ },
2843
+ {
2844
+ name: "lltv",
2845
+ type: "uint256",
2846
+ },
2847
+ ],
2848
+ },
2849
+ {
2850
+ name: "assets",
2851
+ type: "uint128",
2852
+ },
2853
+ {
2854
+ name: "penalty",
2855
+ type: "uint64",
2856
+ },
2857
+ ],
2858
+ },
2859
+ {
2860
+ name: "referralFeePct",
2861
+ type: "uint256",
2862
+ },
2863
+ {
2864
+ name: "referralFeeRecipient",
2865
+ type: "address",
2866
+ },
2867
+ {
2868
+ name: "deadline",
2869
+ type: "uint256",
2870
+ },
2871
+ ],
2872
+ outputs: [],
2873
+ },
2874
+ ];