Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
literallymarvellous committed Sep 15, 2024
1 parent 462ec5c commit 2af3e1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dexs/pear-protocol/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const fetch = async (
const url = "https://www.api.pearprotocol.io/v1/metric";
const response = await httpGet(url);

const totalVolume = response.totalVolume;
const dailyVolume = response.dailyVolume;
const totalVolume = response.payload.totalVolume;
const dailyVolume = response.payload.dailyVolume;

return {
totalVolume,
Expand Down
4 changes: 2 additions & 2 deletions fees/pear-protocol/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { httpGet } from "../../utils/fetchURL";
const fetch = async (timestamp: number) => {
const url = "https://www.api.pearprotocol.io/v1/metric";
const response = await httpGet(url);
const totalFees = response.totalFees;
const dailyFees = response.dailyFees;
const totalFees = response.payload.totalFees;
const dailyFees = response.payload.dailyFees;
const dailyRevenue = dailyFees;
const totalRevenue = totalFees;

Expand Down

0 comments on commit 2af3e1a

Please sign in to comment.