Skip to content

Commit

Permalink
Stop fetching tvls from the pruned graph and use liquidity as a proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarlycow committed Dec 19, 2024
1 parent 677c1c9 commit 791c379
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aperture_finance/uniswap-smart-order-router",
"version": "0.3.2",
"version": "0.3.3",
"description": "Uniswap Smart Order Router",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down Expand Up @@ -117,4 +117,4 @@
"oclif": {
"commands": "./cli/commands"
}
}
}
9 changes: 3 additions & 6 deletions src/providers/v3/subgraph-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,16 @@ export class V3SubgraphProvider implements IV3SubgraphProvider {
}
feeTier
liquidity
totalValueLockedUSD
totalValueLockedETH
}
}
`;

let pools: RawV3SubgraphPool[] = [];

log.info(
`Getting V3 pools from the subgraph with page size ${PAGE_SIZE}${
providerConfig?.blockNumber
? ` as of block ${providerConfig?.blockNumber}`
: ''
`Getting V3 pools from the subgraph with page size ${PAGE_SIZE}${providerConfig?.blockNumber
? ` as of block ${providerConfig?.blockNumber}`
: ''
}.`
);

Expand Down

0 comments on commit 791c379

Please sign in to comment.