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({ const aprValue = getApr({
rewardTokenPrice: stakingPrice, rewardTokenPrice: earningPrice,
stakingTokenPrice: earningPrice, stakingTokenPrice: stakingPrice,
tokenPerBlock: totalStaked, tokenPerBlock: parseFloat(pool.tokenPerBlock) / 1e-18,
totalStaked: parseFloat(pool.tokenPerBlock) / 1e-18, totalStaked: totalStaked,
}); });
if (aprValue) { if (aprValue) {