diff --git a/src/gasPriceOracle/adapters/linea.ts b/src/gasPriceOracle/adapters/linea.ts index 369a1198..24429870 100644 --- a/src/gasPriceOracle/adapters/linea.ts +++ b/src/gasPriceOracle/adapters/linea.ts @@ -8,5 +8,9 @@ import * as ethereum from "./ethereum"; import { GasPriceEstimateOptions } from "../oracle"; export function eip1559(provider: providers.Provider, opts: GasPriceEstimateOptions): Promise { + // We use the legacy method to call `eth_gasPrice` which empirically returns a more accurate + // gas price estimate than `eth_maxPriorityFeePerGas` or ethersProvider.getFeeData in the EIP1559 "raw" or "bad" + // cases. Based on testing `eth_gasPrice` returns the closest price to the Linea-specific `linea_estimateGas` + // endpoint which the Viem Linea adapter queries. return ethereum.legacy(provider, opts); }