Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cow swapper simplify status detection #8568

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

gomesalexandre
Copy link
Contributor

Description

a.k.a if we have a buy Tx hash, we're done, else we're pending, easy as.
Makes it so we don't have to hit the status endpoint, which is simpler, more performant and potentially faster in case the API takes longer to reflect the status.

Cancelled, expired, pending and unknown were actually non-issues: we were checking for these after the buyTxHash checks. You could never end up there, since, if we have a buyTxHash, the swap is a success.

Issue (if applicable)

Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Low

Testing

  • CoW status detection is happy

Engineering

  • ^

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)
  • ^

Screenshots (if applicable)

https://jam.dev/c/a4059902-80cf-4879-b250-1c4b08c49495

@gomesalexandre gomesalexandre requested a review from a team as a code owner January 14, 2025 13:17
Copy link
Member

@0xApotheosis 0xApotheosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CoW status detection very happy 🐄

Screenshot 2025-01-15 at 12 45 11

https://jam.dev/c/e0502f42-41fc-443b-b687-e5951b303d83

@0xApotheosis 0xApotheosis merged commit 96f4df0 into develop Jan 15, 2025
3 checks passed
@0xApotheosis 0xApotheosis deleted the feat_cow_improve_cleanup_status_detection branch January 15, 2025 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants