From 3ab7c470854d5f32aa1e2f7220ed55dccbc2f794 Mon Sep 17 00:00:00 2001 From: Claudio Ramos Date: Sun, 15 Aug 2021 19:33:55 -0300 Subject: [PATCH] fix: apr calculation --- app/javascript/src/components/Poo.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/src/components/Poo.tsx b/app/javascript/src/components/Poo.tsx index 78fe2ba..c559aa9 100644 --- a/app/javascript/src/components/Poo.tsx +++ b/app/javascript/src/components/Poo.tsx @@ -39,10 +39,10 @@ export const Pool = ({ pool }: PoolProps) => { ); const aprValue = getApr({ - rewardTokenPrice: stakingPrice, - stakingTokenPrice: earningPrice, - tokenPerBlock: totalStaked, - totalStaked: parseFloat(pool.tokenPerBlock) / 1e-18, + rewardTokenPrice: earningPrice, + stakingTokenPrice: stakingPrice, + tokenPerBlock: parseFloat(pool.tokenPerBlock) / 1e-18, + totalStaked: totalStaked, }); if (aprValue) {