Skip to content

Commit 02ec1bd

Browse files
authored
Merge pull request #387 from Gearbox-protocol/permissionless-fixes
fix: decode mellow4626 worker txs
2 parents f059b61 + a0bb10e commit 02ec1bd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/permissionless/bindings/instance-manager.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { instanceManagerAbi } from "../../abi/310/instanceManager.js";
1010
import { camelotV3WorkerAbi } from "../../abi/router/camelotV3Worker.js";
1111
import { erc4626WorkerAbi } from "../../abi/router/erc4626Worker.js";
1212
import { gearboxRouterAbi } from "../../abi/router/gearboxRouter.js";
13+
import { mellow4626WorkerAbi } from "../../abi/router/mellow4626Worker.js";
1314
import { pendleRouterWorkerAbi } from "../../abi/router/pendleRouterWorker.js";
1415
import { uniswapV3WorkerAbi } from "../../abi/router/uniswapV3Worker.js";
1516
import type { RawTx } from "../../sdk/types/index.js";
@@ -89,6 +90,18 @@ export class InstanceManagerContract extends BaseContract<typeof abi> {
8990
return parsedData;
9091
}
9192

93+
const mellow4626Worker = new BaseContract(
94+
mellow4626WorkerAbi,
95+
target,
96+
this.client,
97+
"Mellow4626Worker",
98+
);
99+
parsedData = mellow4626Worker.parseFunctionData(calldata);
100+
101+
if (!parsedData.functionName.startsWith("Unknown function")) {
102+
return parsedData;
103+
}
104+
92105
const pendleRouterWorker = new BaseContract(
93106
pendleRouterWorkerAbi,
94107
target,

0 commit comments

Comments
 (0)