@morpho-org/bundler-sdk-viem 3.2.6 → 3.2.7

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 (2) hide show
  1. package/lib/actions.js +5 -1
  2. package/package.json +10 -10
package/lib/actions.js CHANGED
@@ -210,7 +210,11 @@ const encodeOperation = (operation, dataBefore, supportsSignature = true, index
210
210
  break;
211
211
  }
212
212
  // Simple permit is not supported, fallback to standard approval.
213
- requirements.txs.push(...encodeErc20Approval(operation.address, spender, amount, dataBefore));
213
+ // Ignore zero permits used to reset allowances at the end of a bundle
214
+ // when the signer does not support signatures, as they cannot be bundled.
215
+ // Currently only used by DAI-specific permit which does not support specific amounts.
216
+ if (amount > 0n)
217
+ requirements.txs.push(...encodeErc20Approval(operation.address, spender, amount, dataBefore));
214
218
  break;
215
219
  }
216
220
  case "Erc20_Permit2": {
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": "3.2.6",
4
+ "version": "3.2.7",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -19,10 +19,10 @@
19
19
  ],
20
20
  "peerDependencies": {
21
21
  "viem": "^2.0.0",
22
- "@morpho-org/morpho-ts": "^2.4.1",
22
+ "@morpho-org/blue-sdk": "^4.9.0",
23
23
  "@morpho-org/blue-sdk-viem": "^3.1.1",
24
- "@morpho-org/blue-sdk": "^4.4.0",
25
- "@morpho-org/simulation-sdk": "^3.1.2"
24
+ "@morpho-org/morpho-ts": "^2.4.1",
25
+ "@morpho-org/simulation-sdk": "^3.1.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@tanstack/query-core": "^5.62.16",
@@ -34,13 +34,13 @@
34
34
  "typescript": "^5.7.2",
35
35
  "viem": "^2.23.0",
36
36
  "vitest": "^3.0.5",
37
- "@morpho-org/morpho-test": "^2.3.0",
38
- "@morpho-org/blue-sdk": "^4.4.0",
39
- "@morpho-org/morpho-ts": "^2.4.1",
40
37
  "@morpho-org/blue-sdk-viem": "^3.1.1",
41
- "@morpho-org/simulation-sdk": "^3.1.2",
42
- "@morpho-org/simulation-sdk-wagmi": "^3.0.2",
43
- "@morpho-org/test": "^2.1.4",
38
+ "@morpho-org/blue-sdk": "^4.9.0",
39
+ "@morpho-org/morpho-ts": "^2.4.1",
40
+ "@morpho-org/morpho-test": "^2.4.0",
41
+ "@morpho-org/simulation-sdk": "^3.1.3",
42
+ "@morpho-org/simulation-sdk-wagmi": "^3.0.3",
43
+ "@morpho-org/test": "^2.1.5",
44
44
  "@morpho-org/test-wagmi": "^2.0.4"
45
45
  },
46
46
  "scripts": {