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

Consider setting gas fee/limit #1502

Open
lalexgap opened this issue Aug 1, 2023 · 0 comments
Open

Consider setting gas fee/limit #1502

lalexgap opened this issue Aug 1, 2023 · 0 comments
Labels
🏗️ Productionization Things that need to be tackled for nitro to run in a production environment

Comments

@lalexgap
Copy link
Contributor

lalexgap commented Aug 1, 2023

Right now I don't think we're setting a specific gas limit/fee and thus rely on a gas price oracle. This works great on testnets where no one really cares about the cost of the transaction.

However on mainnet we probably want to verify with the user how much is being spent on gas. If the network is busy a user might not be willing to pay the high gas fees to submit a transaction.

Metamask offers an example of how to handle this, it provides a recommended value but lets you adjust if it.

Another example of this is the rocketpool minipool CLI:

rocketpool node b

Your fee distributor's balance of 0.200140 ETH will be distributed as follows:
	Your withdrawal address will receive 0.071050 ETH.
	rETH pool stakers will receive 0.129090 ETH.

+============== Suggested Gas Prices ==============+
| Avg Wait Time |  Max Fee  |    Total Gas Cost    |
| 15 Seconds    | 38 gwei   | 0.0059 to 0.0089 ETH |
| 1 Minute      | 27 gwei   | 0.0042 to 0.0063 ETH |
| 3 Minutes     | 27 gwei   | 0.0042 to 0.0063 ETH |
| >10 Minutes   | 27 gwei   | 0.0042 to 0.0063 ETH |
+==================================================+

These prices include a maximum priority fee of 2.00 gwei.
Please enter your max fee (including the priority fee) or leave blank for the default of 27 gwei:

@lalexgap lalexgap added the 🏗️ Productionization Things that need to be tackled for nitro to run in a production environment label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏗️ Productionization Things that need to be tackled for nitro to run in a production environment
Projects
None yet
Development

No branches or pull requests

1 participant