-
Notifications
You must be signed in to change notification settings - Fork 394
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
Swap marked as dropped but it was successful #2942
Comments
this is difficult to reproduce. |
I've also experienced this issue where Taho is reporting that the trxn was dropped but if you follow the scan link, it shows as successful. My latest example, with the evidence following, was not a swap though, it was a send. Here's the trxn on the scan site and it says it was successful: https://snowtrace.io//tx/0x8f14e338a70e5f9bbd496778b1bda4400839bdce7ac2be42e2f55646d5f111e1 Here's a screenshot from the extension: Here's a warning in console that corresponded to the time of the trxn: And here's the log file I exported from the extension right after this happened (13:39 is the time): |
What seems to be happening here is that after submission, we poll the remote node for our transaction and don't find it. Since we don't find it, we assume it was dropped—but we do that immediately, instead of retrying a handful of times or checking some other way. I think part of the issue here is that A couple of ways we can approach here:
The “continuing to check” approach seems most straightforward, as I think it's just a matter of adding an additional conditional before the cleanup at https://github.com/tahowallet/extension/blob/main/background/services/chain/index.ts#L1375-L1396 and re-enqueueing. If the nonce on the transaction is ahead of or same as the latest nonce, we don't stop querying for it. If the transaction is older than X (say 2 minutes or something), we mark it as dropped and release the nonce but continue querying. If we see a transaction with the same or greater nonce show up, we stop querying this transaction. |
Swapped on Optimism, CRV -> AAVE
https://optimistic.etherscan.io/tx/0xf5abee267fe5e4940b574ccd08ea0bf91bd8ec45b48a01afb70036a3fb8e673e
The text was updated successfully, but these errors were encountered: