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