Skip to content

Commit

Permalink
fix fees El Dorado Exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Aug 11, 2023
1 parent 1e07b95 commit a38273c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fees/el-dorado-exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const graphs = (graphUrls: ChainEndpoints) => {
const graphRes = await request(graphUrls[chain], graphQuery);

const dailyFee = (
parseInt(graphRes.feeStat.mint) +
parseInt(graphRes.feeStat.burn) +
parseInt(graphRes.feeStat.marginAndLiquidation) +
parseInt(graphRes.feeStat.swap)
parseInt(graphRes.feeStat?.mint || 0) +
parseInt(graphRes.feeStat?.burn || 0) +
parseInt(graphRes.feeStat?.marginAndLiquidation || 0) +
parseInt(graphRes.feeStat?.swap || 0)
) / 1e30
const dailyUserFees = (
parseInt(graphRes.feeStat.marginAndLiquidation) +
parseInt(graphRes.feeStat.swap)
parseInt(graphRes.feeStat?.marginAndLiquidation || 0) +
parseInt(graphRes.feeStat?.swap || 0)
) / 1e30;

return {
Expand Down

0 comments on commit a38273c

Please sign in to comment.