Skip to content

Commit 18dd80f

Browse files
authored
fix(monitor): Prevent premature return on token mismatch (#3032)
This issue could cause the monitor to under-report on withdrawals to mainnet. Spotted while checking the monitor for opportunities to simplify.
1 parent 9fd381c commit 18dd80f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/monitor/Monitor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,8 +1298,9 @@ export class Monitor {
12981298
continue;
12991299
}
13001300
if (!this.clients.crossChainTransferClient.adapterManager.l2TokenExistForL1Token(l1Token.address, chainId)) {
1301-
return;
1301+
continue;
13021302
}
1303+
13031304
const l2Token = this.clients.crossChainTransferClient.adapterManager.l2TokenForL1Token(
13041305
l1Token.address,
13051306
chainId

0 commit comments

Comments
 (0)