Skip to content

Commit

Permalink
remove graft and add hotfix for high volume token
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlapham committed May 21, 2021
1 parent 03d8fb9 commit a32ac07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/mappings/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ export function handleSwap(event: SwapEvent): void {
let bundle = Bundle.load('1')
let factory = Factory.load(FACTORY_ADDRESS)
let pool = Pool.load(event.address.toHexString())

// hot fix for bad pricing
if (pool.id == '0x9663f2ca0454accad3e094448ea6f77443880454') {
return
}

let token0 = Token.load(pool.token0)
let token1 = Token.load(pool.token1)

Expand Down
4 changes: 2 additions & 2 deletions subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ repository: https://github.com/Uniswap/uniswap-v3-subgraph
schema:
file: ./schema.graphql
# graft:
# base: QmNm4wgeeHs56fdqLUkc8oG18FVWPXWjLxexyP3GNGkKtv
# block: 12414183
# base: QmPVFSwUbHfGo4Lv4nsyKuFA2vgYg3H7WcwCE85VHFytqi
# block: 12468290
dataSources:
- kind: ethereum/contract
name: Factory
Expand Down

0 comments on commit a32ac07

Please sign in to comment.