Skip to content

Commit 6b4b1ea

Browse files
hotfix: ignore outward transfers from pretium hotwallet
1 parent 879904c commit 6b4b1ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/worker/trigger_offramp.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ func (w *OfframpWorker) Work(ctx context.Context, job *river.Job[OfframpArgs]) e
3333
}
3434
defer tx.Rollback(ctx)
3535

36+
// TODO: Inject the actual merhcnat address here instead of hardcoding
37+
if job.Args.InitiatorAddress == "0x0000000000000000000000000000000000000000" || job.Args.InitiatorAddress == "0x8005ee53E57aB11E11eAA4EFe07Ee3835Dc02F98" {
38+
return nil
39+
}
40+
3641
link, err := w.wc.store.GetNonCustodialLinkByPublicKey(ctx, tx, job.Args.InitiatorAddress)
3742
if err != nil && !errors.Is(err, pgx.ErrNoRows) {
3843
return fmt.Errorf("failed to check non_custodial_link: %w", err)

0 commit comments

Comments
 (0)