Skip to content

Commit

Permalink
fix lido fees
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jul 1, 2023
1 parent 3deca81 commit b6247c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fees/lido.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ETHEREUM } from "../helpers/chains";
import { request, gql } from "graphql-request";
import type { ChainEndpoints } from "../adapters/types"
import { Chain } from '@defillama/sdk/build/general';
import { getTimestampAtStartOfDayUTC, getTimestampAtStartOfPreviousDayUTC } from "../utils/date";
import { getTimestampAtStartOfDayUTC } from "../utils/date";
import BigNumber from "bignumber.js";

const endpoints = {
Expand Down Expand Up @@ -31,8 +31,8 @@ const graphs = (graphUrls: ChainEndpoints) => {

const dailyFee = new BigNumber(graphRes.financialsDailySnapshot.dailyTotalRevenueUSD);
const totalFee = new BigNumber(graphRes.financialsDailySnapshot.cumulativeTotalRevenueUSD);
const dailyRev = new BigNumber(graphRes.financialsDailySnapshot.dailyProtocolSideRevenueUSD);
const totalRev = new BigNumber(graphRes.financialsDailySnapshot.cumulativeProtocolSideRevenueUSD);
const dailyRev = new BigNumber(dailyFee).multipliedBy(0.1);
const totalRev = new BigNumber(totalFee).multipliedBy(0.1);
const dailySSRev = new BigNumber(graphRes.financialsDailySnapshot.dailySupplySideRevenueUSD);
const totalSSRev = new BigNumber(graphRes.financialsDailySnapshot.cumulativeSupplySideRevenueUSD);

Expand Down

0 comments on commit b6247c3

Please sign in to comment.