From 8dbb024968283821deb26f19598ac67cbeffc2d1 Mon Sep 17 00:00:00 2001 From: Sun Burnt Date: Tue, 10 Dec 2024 13:45:51 -0500 Subject: [PATCH] chore: linting --- src/features/staking/lib/core/base.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/features/staking/lib/core/base.ts b/src/features/staking/lib/core/base.ts index fb59de0..54d1739 100644 --- a/src/features/staking/lib/core/base.ts +++ b/src/features/staking/lib/core/base.ts @@ -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)); -};