fix: apr calculation
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user