Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt-sun committed Dec 10, 2024
1 parent 683e73c commit 8dbb024
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/features/staking/lib/core/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,3 @@ export const getDistributionParams = async () => {
return 0.02;
}
};

export const getAPR = async (inflation: null | string) => {
if (!inflation) return null;

const communityTax = await getDistributionParams();
const inflationBN = new BigNumber(inflation);

// APR = inflation * (1 - community_tax)
return inflationBN.times(new BigNumber(1).minus(communityTax));
};

0 comments on commit 8dbb024

Please sign in to comment.