-
Notifications
You must be signed in to change notification settings - Fork 39
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
gasPrice for Foreign chain transactions should be requested through gasprice.poa.network #16
Comments
:) it was in my todo of issues to create for the projects. Since personally I don't like the idea of yet another service to be requested, I thought about an oracle which will put gas price into the bridge contract. My rationales are:
My suggestion are
This will be Phase I Later in Phase II we will:
@rstormsf if you agree let's change the label to solidity and modify the title to reflect the idea of the changing. |
@rstormsf @igorbarinov did you discuss it? should we have a call together to discuss it? |
We have |
@phahulin could you create a public dashboard in site24x7 for gasprice oracle @banteg thank you for the code https://github.com/banteg/gasprice |
Nice, could we have outage number? duration? |
Pashi, nice dashboard! But gasprice oracle is out of sync 🙈😬
|
OK. Here is my suggestion:
|
Bridge should read from config.toml
and receive this value in gwei, convert to hex value in wei for signing tx on foreign. |
Here is the recent requirements based on discussions:
The logic is as follows:
|
In the JSON returned from {
"block_number": 5584026,
"block_time": 14.307,
"instant": 41,
"standard": 5,
"slow": 4,
"fast": 6,
"health": true
} does anyone know what does the "health" key-value pair means? Does
|
|
Ok, cool. Thanks! |
As an example, ICO wizard makes an API call to https://gasprice.poa.network/, get the fastest or lowest(@igorbarinov )
IF service is not available, use hardcoded value.
I'd recommend using
standard
value from https://gasprice.poa.network/Should be done on Rust side
https://gasprice.poa.network/
@akolotov please approve
The text was updated successfully, but these errors were encountered: