Skip to content

Commit bbf3f48

Browse files
committed
show setHookConfig effects in vault diff
1 parent 044a2fd commit bbf3f48

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib/diffs.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ export function getDiffs(calls: DecodedEVCCall[]): Diffs {
8585
maxLiquidationDiscount: call.decoded.args[0],
8686
},
8787
};
88+
} else if (f === "setHookConfig") {
89+
const existingVault = vaults[targetContract];
90+
vaults[targetContract] = {
91+
...existingVault,
92+
newValues: {
93+
...existingVault?.newValues,
94+
hookTarget: call.decoded.args[0],
95+
hookedOps: call.decoded.args[1],
96+
},
97+
};
8898
} else if (f === "setInterestFee") {
8999
const existingVault = vaults[targetContract];
90100
vaults[targetContract] = {

0 commit comments

Comments
 (0)