Skip to content

Commit adb07ac

Browse files
authored
improve(BundleDataClient): Don't create slow fill leaves for invalid recipients (#855)
1 parent 1c3cdbe commit adb07ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/clients/BundleDataClient/BundleDataClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ function updateBundleExcessSlowFills(
139139
}
140140

141141
function updateBundleSlowFills(dict: BundleSlowFills, deposit: V3DepositWithBlock & { lpFeePct: BigNumber }): void {
142+
if (chainIsEvm(deposit.destinationChainId) && !isValidEvmAddress(deposit.recipient)) {
143+
return;
144+
}
142145
const { destinationChainId, outputToken } = deposit;
143146
if (!dict?.[destinationChainId]?.[outputToken]) {
144147
assign(dict, [destinationChainId, outputToken], []);

0 commit comments

Comments
 (0)