Skip to content

Commit

Permalink
linting and formatiing
Browse files Browse the repository at this point in the history
  • Loading branch information
ikemHood committed Jan 2, 2025
1 parent 74542e6 commit f2269c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/store/ekobu.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,16 @@ export class Ekubo extends IDapp<EkuboBaseAprDoc> {

const tvlUsd =
((price0 ?? 0) * Number(p.tvl0_total)) /
Math.pow(10, token0.decimals) +
Math.pow(10, token0.decimals) +
((price1 ?? 0) * Number(p.tvl1_total)) /
Math.pow(10, token1.decimals);
Math.pow(10, token1.decimals);

if (tvlUsd < 10000) return;
const feesUsd =
((price0 ?? 0) * Number(p.fees0_24h)) /
Math.pow(10, token0.decimals) +
Math.pow(10, token0.decimals) +
((price1 ?? 0) * Number(p.fees1_24h)) /
Math.pow(10, token1.decimals);
Math.pow(10, token1.decimals);

const apyBase = (feesUsd * 365) / tvlUsd;
const apyReward = springPair ? springPair.currentApr : 0;
Expand Down

0 comments on commit f2269c6

Please sign in to comment.