Skip to content

Commit

Permalink
fix error uniswap
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jan 13, 2024
1 parent 7207fe1 commit 33c00e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions protocols/uniswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ const adapter: BreakdownAdapter = {
}, {} as BaseAdapter)
}
}
adapter.breakdown.v3.bsc.fetch = async (timestamp, chainBlocks) => {
const response = await v3Graphs(CHAIN.BSC)(timestamp, chainBlocks)
const totalVolume = Number(response.totalVolume) - 10_000_000_000;
return {
...response,
totalVolume
} as FetchResultGeneric
}
// adapter.breakdown.v3.bsc.fetch = async (timestamp, chainBlocks) => {
// const response = await v3Graphs(CHAIN.BSC)(timestamp, chainBlocks)
// const totalVolume = Number(response.totalVolume) - 10_000_000_000;
// return {
// ...response,
// totalVolume
// } as FetchResultGeneric
// }

export default adapter;

0 comments on commit 33c00e5

Please sign in to comment.