Skip to content

Commit

Permalink
update with latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlapham committed May 26, 2021
1 parent 6b0ba47 commit 11c85d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "graph build",
"create-local": "graph create davekaj/uniswap --node http://127.0.0.1:8020",
"deploy-local": "graph deploy davekaj/uniswap --debug --ipfs http://localhost:5001 --node http://127.0.0.1:8020",
"deploy": "graph deploy ianlapham/uniswapv2 --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ --debug",
"deploy": "graph deploy ianlapham/uniswap-v2-rinkeby --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ --debug",
"deploy-staging": "graph deploy $THE_GRAPH_GITHUB_USER/$THE_GRAPH_SUBGRAPH_NAME /Uniswap --ipfs https://api.staging.thegraph.com/ipfs/ --node https://api.staging.thegraph.com/deploy/",
"watch-local": "graph deploy graphprotocol/Uniswap2 --watch --debug --node http://127.0.0.1:8020/ --ipfs http://localhost:5001"
},
Expand Down
2 changes: 1 addition & 1 deletion src/mappings/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ export function handleSwap(event: Swap): void {

// swap specific updating for token0
token0DayData.dailyVolumeToken = token0DayData.dailyVolumeToken.plus(amount0Total)
token0DayData.dailyVolumeETH = token0DayData.dailyVolumeETH.plus(amount0Total.times(token1.derivedETH as BigDecimal))
token0DayData.dailyVolumeETH = token0DayData.dailyVolumeETH.plus(amount0Total.times(token0.derivedETH as BigDecimal))
token0DayData.dailyVolumeUSD = token0DayData.dailyVolumeUSD.plus(
amount0Total.times(token0.derivedETH as BigDecimal).times(bundle.ethPrice)
)
Expand Down
2 changes: 1 addition & 1 deletion subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: Pair
network: mainnet
network: rinkeby
source:
abi: Pair
mapping:
Expand Down

0 comments on commit 11c85d1

Please sign in to comment.