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

improve(GasPriceOracle): Remove eip1559Bad and lineaEthers adapters #819

Merged
merged 10 commits into from
Feb 13, 2025

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Jan 7, 2025

These are the default adapters today but in production we use the more accurate eip1559Raw and lineaViem variants. These were always designed to be set as the defaults following testing.

The benefit is we can remove the GAS_PRICE_EIP1559_RAW_ and NEW_GAS_PRICE_ORACLE_ environment variables

Fixes ACX-3602

These are the default adapters today but in production we use the more accurate eip1559Raw and lineaViem variants. These were always designed to be set as the defaults following testing.

The benefit is we can remove the `GAS_PRICE_EIP1559_RAW_` and `NEW_GAS_PRICE_ORACLE_` environment variables
Copy link

linear bot commented Jan 7, 2025

@nicholaspai nicholaspai requested a review from pxrl January 7, 2025 23:47
@nicholaspai nicholaspai requested a review from bmzig January 15, 2025 01:18
* @param chainId Chain ID of the provider instance.
* @returns Promise of gas price estimate object.
*/
export async function eip1559Bad(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a dumb question, but we don't currently use this anywhere? No chain relies on it?

Totally fine with reversing the default, but want to make sure we're not breaking anything.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in production no, we do not use it at all

@nicholaspai nicholaspai requested a review from mrice32 February 6, 2025 15:20
@nicholaspai
Copy link
Member Author

Note to self: before releasing this into the relayer repo we should update the default scaler values in order to acknowledge that users of the relayer might not have set these "new" or "raw" oracles and they might see unexpected fees as a result of the bump

@nicholaspai nicholaspai merged commit fdb1ec1 into master Feb 13, 2025
4 checks passed
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.

2 participants