Merge pull request #19 from exstake/fix/apr

fix: apr calculation
This commit is contained in:
Claudio Ramos
2021-08-15 19:34:19 -03:00
committed by GitHub

View File

@@ -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) {