fix: apr calculation

This commit is contained in:
Claudio Ramos
2021-08-15 19:33:55 -03:00
parent dd2e9d5ece
commit 3ab7c47085

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