From 0b08c737495ccecf93e897049201842922465be3 Mon Sep 17 00:00:00 2001 From: avalkov Date: Wed, 29 Jun 2022 11:56:02 +0300 Subject: [PATCH] Remove unused code --- src/screens/home/components/tokenomics/hooks.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/screens/home/components/tokenomics/hooks.tsx b/src/screens/home/components/tokenomics/hooks.tsx index 83849ad079..f9417ed0a0 100644 --- a/src/screens/home/components/tokenomics/hooks.tsx +++ b/src/screens/home/components/tokenomics/hooks.tsx @@ -35,16 +35,6 @@ export const useTokenomics = () => { const stakingParams = StakingParams.fromJson(R.pathOr({}, ['stakingParams', 0, 'params'], data)); results.denom = stakingParams.bondDenom; - const [total] = R.pathOr([], [ - 'supply', - 0, - 'coins', - ], data) - .filter((x) => x.denom === results.denom); - if (total) { - results.total = numeral(formatToken(total.amount, total.denom).value).value(); - } - const rawSupplyAmount = R.pathOr(0, ['adjustedSupply', 0, 'value'], data); results.total = numeral(formatToken(rawSupplyAmount, chainConfig.primaryTokenUnit).value).value();