@morpho-org/bundler-sdk-viem 4.3.1 → 4.3.2

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.
@@ -718,17 +718,16 @@ const encodeOperation = (operation, dataBefore, supportsSignature = true, index
718
718
  operation.skipRevert,
719
719
  ],
720
720
  });
721
- if (!sellEntireBalance)
722
- actions.push({
723
- type: "erc20Transfer",
724
- args: [
725
- operation.address,
726
- generalAdapter1,
727
- viem_1.maxUint256,
728
- paraswapAdapter,
729
- false,
730
- ],
731
- });
721
+ actions.push({
722
+ type: "erc20Transfer",
723
+ args: [
724
+ operation.address,
725
+ generalAdapter1,
726
+ viem_1.maxUint256,
727
+ paraswapAdapter,
728
+ false,
729
+ ],
730
+ });
732
731
  break;
733
732
  }
734
733
  case "Blue_Paraswap_BuyDebt": {
@@ -714,17 +714,16 @@ export const encodeOperation = (operation, dataBefore, supportsSignature = true,
714
714
  operation.skipRevert,
715
715
  ],
716
716
  });
717
- if (!sellEntireBalance)
718
- actions.push({
719
- type: "erc20Transfer",
720
- args: [
721
- operation.address,
722
- generalAdapter1,
723
- maxUint256,
724
- paraswapAdapter,
725
- false,
726
- ],
727
- });
717
+ actions.push({
718
+ type: "erc20Transfer",
719
+ args: [
720
+ operation.address,
721
+ generalAdapter1,
722
+ maxUint256,
723
+ paraswapAdapter,
724
+ false,
725
+ ],
726
+ });
728
727
  break;
729
728
  }
730
729
  case "Blue_Paraswap_BuyDebt": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morpho-org/bundler-sdk-viem",
3
3
  "description": "Viem-based extension of `@morpho-org/simulation-sdk` that exports utilities to transform simple interactions on Morpho (such as `Blue_Borrow`) and Morpho Vaults (such as `MetaMorpho_Deposit`) into the required bundles (with ERC20 approvals, transfers, etc) to submit to the bundler onchain.",
4
- "version": "4.3.1",
4
+ "version": "4.3.2",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -21,9 +21,9 @@
21
21
  "peerDependencies": {
22
22
  "viem": "^2.0.0",
23
23
  "@morpho-org/blue-sdk": "^5.17.0",
24
- "@morpho-org/blue-sdk-viem": "^4.5.0",
25
24
  "@morpho-org/simulation-sdk": "^3.4.0",
26
- "@morpho-org/morpho-ts": "^2.5.0"
25
+ "@morpho-org/morpho-ts": "^2.5.0",
26
+ "@morpho-org/blue-sdk-viem": "^4.5.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@tanstack/query-core": "^5.62.16",
@@ -35,14 +35,14 @@
35
35
  "typescript": "^5.9.3",
36
36
  "viem": "^2.41.2",
37
37
  "vitest": "^4.0.15",
38
+ "@morpho-org/morpho-test": "^2.5.0",
38
39
  "@morpho-org/blue-sdk": "^5.17.0",
39
- "@morpho-org/blue-sdk-viem": "^4.5.0",
40
40
  "@morpho-org/morpho-ts": "^2.5.0",
41
+ "@morpho-org/blue-sdk-viem": "^4.5.0",
41
42
  "@morpho-org/simulation-sdk": "^3.4.0",
42
- "@morpho-org/morpho-test": "^2.5.0",
43
+ "@morpho-org/simulation-sdk-wagmi": "^3.3.0",
43
44
  "@morpho-org/test": "^2.7.0",
44
- "@morpho-org/test-wagmi": "^2.1.0",
45
- "@morpho-org/simulation-sdk-wagmi": "^3.3.0"
45
+ "@morpho-org/test-wagmi": "^2.1.0"
46
46
  },
47
47
  "scripts": {
48
48
  "prepublish": "$npm_execpath build",