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

Make 'out of funds' a non-recoverable error #174

Open
tilacog opened this issue Aug 2, 2022 · 0 comments
Open

Make 'out of funds' a non-recoverable error #174

tilacog opened this issue Aug 2, 2022 · 0 comments
Labels
feature New feature or request
Milestone

Comments

@tilacog
Copy link
Contributor

tilacog commented Aug 2, 2022

When the Oracle's wallet is low on funds and attempts to broadcast a transaction, we get back an error from the JRPC provider, like this one:

2022-08-02T15:07:19.400312207Z ERROR An error occurred and interrupted the last polling iteration. error="Couldn't submit a transaction to the mempool of the JRPC provider: Api error: RPC error: Error { code: ServerError(-32000), message: \"insufficient funds for gas * price + value\", data: None }"

We should create a new error variant that:

  1. emits a proper warning (and alerts, when we get to that)
  2. halts the main loop for longer than the default sleep duration to give the team some time to refund the wallet.

Ideally, the Oracle should keep track of its wallet's balance and emit warnings and alerts way before its depletion.

@tilacog tilacog added the feature New feature or request label Aug 2, 2022
@tilacog tilacog added this to the Robustness milestone Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant