Skip to content

Commit

Permalink
fix: retry fills if deposit not found (#525)
Browse files Browse the repository at this point in the history
Co-authored-by: amateima <[email protected]>
  • Loading branch information
amateima and amateima authored Feb 8, 2025
1 parent f4f8365 commit c584d62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class FillEventsV3Consumer {
where: { sourceChainId: originChainId, depositId: depositId.toString() },
});

if (!deposit) return;
if (!deposit) throw new Error(`Deposit not found for ${depositId} on chain ${originChainId}`);
if (this.fillTxAlreadyProcessed(deposit, job.data)) return;

await this.processFillEventQueueMessage(deposit, job.data);
Expand Down

0 comments on commit c584d62

Please sign in to comment.