Skip to content

Commit 8353445

Browse files
authored
Inflated price hot fix (#289)
* inflated price hot fix * formatting
1 parent 7190ac7 commit 8353445

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/v3/mappings/swap.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ export function handleSwap(event: SwapEvent): void {
2727
return
2828
}
2929

30+
// hot fix for inflated native price at specific block
31+
if (
32+
pool.id.toHexString().toLowerCase() == '0x30110228b59b21fafe8675ed930983e2f272b74c' &&
33+
event.block.number.equals(BigInt.fromI32(37700047))
34+
) {
35+
return
36+
}
37+
3038
const token0 = Token.load(pool.token0)
3139
const token1 = Token.load(pool.token1)
3240

0 commit comments

Comments
 (0)