Skip to content

Commit

Permalink
fix(relayer): Don't fast fill any deposit made by a slow depositor (#…
Browse files Browse the repository at this point in the history
…1899)

The existing logic incorrectly only short-circuits when the fill status
is unfilled. Once this has happened, the fill status changes to
SlowFillRequested and the relayer will proceed to evaluate it as per its
normal fill logic.
  • Loading branch information
pxrl authored Nov 10, 2024
1 parent ba9a76d commit e2fa91f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/relayer/Relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,15 @@ export class Relayer {
}

// If depositor is on the slow deposit list, then send a zero fill to initiate a slow relay and return early.
if (slowDepositors?.includes(depositor) && fillStatus === FillStatus.Unfilled) {
this.logger.debug({
at: "Relayer::evaluateFill",
message: "Initiating slow fill for grey listed depositor",
depositor,
});
this.requestSlowFill(deposit);
if (slowDepositors?.includes(depositor)) {
if (fillStatus === FillStatus.Unfilled) {
this.logger.debug({
at: "Relayer::evaluateFill",
message: "Initiating slow fill for grey listed depositor",
depositor,
});
this.requestSlowFill(deposit);
}
return;
}

Expand Down

0 comments on commit e2fa91f

Please sign in to comment.