Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
remove exception handling as per suggestion by defillama team
  • Loading branch information
dsarvaiya authored Jan 15, 2025
1 parent 835ca97 commit 4d12f5d
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions fees/zeebu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const graphsDaily = (graphUrls: Record<string, string>) => {
}
`;

try {

// Fetch total fees
const totalFeesResponse = await request(graphUrls[chain], totalFeesQuery, { });
const totalFees = totalFeesResponse.overallVolumeFeesAggregates.reduce(
Expand All @@ -83,18 +83,6 @@ const graphsDaily = (graphUrls: Record<string, string>) => {
const totalSupplySideRevenue = totalFees * 0.6 / 100;

return {dailyFees, totalFees, dailyUserFees, totalUserFees, dailyRevenue, totalRevenue, dailyHoldersRevenue, totalHoldersRevenue };
} catch (error) {
console.error(`Error fetching data for chain ${chain}:`, error.message);
return {
dailyFees: 0,
totalFees: 0,
dailyUserFees : 0,
totalUserFees : 0,
dailyRevenue : 0,
totalRevenue : 0,
dailyHoldersRevenue : 0,
totalHoldersRevenue : 0
};
}
};
};
Expand Down

0 comments on commit 4d12f5d

Please sign in to comment.