Skip to content

Commit 1f43abf

Browse files
update megaeth v4 to canonical deployment (4326) (#80)
The megaeth-mainnet v4 subgraph was indexing the stale early deployment (PoolManager 0x58dd83c317b03e6ebd72c3e912adf60a8e97aa95, ~block 3.63M). Repoint to the canonical v4 deployment per developers.uniswap.org/contracts/v4/deployments (chain 4326), confirmed on-chain: - networks.json PoolManager -> 0xacb7e78fa05d562e0a5d3089ec896d57d057d38e @ startBlock 7009653 - networks.json PositionManager -> 0x9ae0921e981aaa7308f176f8d4f9129b9247c89d @ startBlock 7009656 - chains.ts poolManagerAddress -> 0xacb7e78fa05d562e0a5d3089ec896d57d057d38e - stablecoinWrappedNativePoolId left unchanged (verified still initialized on the canonical PoolManager via StateView.getSlot0)
1 parent ec3a56b commit 1f43abf

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

networks.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@
203203
},
204204
"megaeth-mainnet": {
205205
"PoolManager": {
206-
"address": "0x58dd83c317b03e6ebd72c3e912adf60a8e97aa95",
207-
"startBlock": 3637446
206+
"address": "0xacb7e78fa05d562e0a5d3089ec896d57d057d38e",
207+
"startBlock": 7009653
208208
},
209209
"PositionManager": {
210-
"address": "0xcae584c1f193cb3c090324ca8a1af4ce378e37e1",
211-
"startBlock": 3637446
210+
"address": "0x9ae0921e981aaa7308f176f8d4f9129b9247c89d",
211+
"startBlock": 7009656
212212
}
213213
},
214214
"linea": {

src/utils/chains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ export function getSubgraphConfig(): SubgraphConfig {
694694
const nativeToUSDT0 = '0xf1fc7e1b96823086b3821db02223910112d139b28c6a132befccada2a3ecae89'.toLowerCase()
695695

696696
return {
697-
poolManagerAddress: '0x58dd83c317b03e6ebd72c3e912adf60a8e97aa95'.toLowerCase(),
697+
poolManagerAddress: '0xacb7e78fa05d562e0a5d3089ec896d57d057d38e'.toLowerCase(),
698698
stablecoinWrappedNativePoolId: nativeToUSDT0,
699699
stablecoinIsToken0: false,
700700
wrappedNativeAddress: WETH,

0 commit comments

Comments
 (0)