Skip to content

Conversation

@ali-behjati
Copy link
Collaborator

@ali-behjati ali-behjati commented Mar 2, 2023

This PR tries to solve a bug that was reported by one of the consumers. The bug was that the code was crashing on revert and the service didn't handle it well (it was a different message). Because of this bug there was another bug that the service was sending a transaction again and again because of the restart.

This PR updates the error handling to capture all messages containing "revert" and also waits for cooldown seconds before starting to push.

Also, some peoples reported that due to bad RPC they got error on the step that gets the updateFee and for some reason the error message was not caught (as this was not handled). This PR solves that too.

@vercel
Copy link

vercel bot commented Mar 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated
example-oracle-amm ⬜️ Ignored (Inspect) Mar 2, 2023 at 1:27PM (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Mar 2, 2023 at 1:27PM (UTC)

@ali-behjati ali-behjati requested a review from 0xfirefist March 2, 2023 13:27
@ali-behjati ali-behjati merged commit 35a2fb6 into main Mar 2, 2023
@ali-behjati ali-behjati deleted the price-pusher/bug-fix branch March 2, 2023 16:05
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.

3 participants