Skip to content

Commit

Permalink
Merge pull request #50 from CudoVentures/Remove-unused-code
Browse files Browse the repository at this point in the history
Remove unused code
  • Loading branch information
avalkov authored Jun 29, 2022
2 parents 6b72a08 + 0b08c73 commit 18b2c69
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/screens/home/components/tokenomics/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 18b2c69

Please sign in to comment.