Skip to content

Commit 044c238

Browse files
remove op bnb specific address
1 parent 8467935 commit 044c238

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

packages/transaction-controller/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- Bump `@metamask/base-controller` from `^8.4.1` to `^8.4.2` ([#6917](https://github.com/MetaMask/core/pull/6917))
13-
- Improve OP Stack layer 1 fee estimation by fetching the supported chain list from the gas API with a static fallback and selecting chain-specific oracle contracts such as opBNB, making `Layer1GasFeeFlow.matchesTransaction` asynchronous to support remote lookups. ([#6899](https://github.com/MetaMask/core/pull/6899))
13+
- Improve OP Stack layer 1 fee estimation by fetching the supported chain list from the gas API with a static fallback, using the shared Optimism gas price oracle contract for all OP Stack networks, and making `Layer1GasFeeFlow.matchesTransaction` asynchronous to support remote lookups. ([#6899](https://github.com/MetaMask/core/pull/6899))
1414

1515
### Fixed
1616

packages/transaction-controller/src/gas-flows/OptimismLayer1GasFeeFlow.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ const FALLBACK_OPTIMISM_STACK_CHAIN_IDS: Hex[] = [
2121
const DEFAULT_OPTIMISM_GAS_PRICE_ORACLE_ADDRESS =
2222
'0x420000000000000000000000000000000000000F';
2323

24-
// opBNB uses a different oracle
25-
const OPBNB_GAS_PRICE_ORACLE_ADDRESS =
26-
'0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3000f';
27-
2824
type SupportedNetworksResponse = {
2925
fullSupport: number[];
3026
partialSupport: {
@@ -77,12 +73,6 @@ export class OptimismLayer1GasFeeFlow extends OracleLayer1GasFeeFlow {
7773
}
7874

7975
protected override getOracleAddressForChain(chainId: Hex): Hex {
80-
switch (chainId) {
81-
case CHAIN_IDS.OPBNB:
82-
case CHAIN_IDS.OPBNB_TESTNET:
83-
return OPBNB_GAS_PRICE_ORACLE_ADDRESS as Hex;
84-
default:
85-
return DEFAULT_OPTIMISM_GAS_PRICE_ORACLE_ADDRESS as Hex;
86-
}
76+
return DEFAULT_OPTIMISM_GAS_PRICE_ORACLE_ADDRESS as Hex;
8777
}
8878
}

0 commit comments

Comments
 (0)