add sell and buy orders list

This commit is contained in:
João Geonizeli
2021-08-15 18:02:06 -03:00
parent 29175f14b0
commit 64bc21195c
17 changed files with 1185 additions and 235 deletions

View File

@@ -38,12 +38,12 @@ export const Pool = ({ pool }: PoolProps) => {
}: ${JSON.stringify(totalStaked)}`
);
const aprValue = getApr(
stakingPrice,
earningPrice,
totalStaked,
parseFloat(pool.tokenPerBlock) / 1e-18
);
const aprValue = getApr({
rewardTokenPrice: stakingPrice,
stakingTokenPrice: earningPrice,
tokenPerBlock: totalStaked,
totalStaked: parseFloat(pool.tokenPerBlock) / 1e-18,
});
if (aprValue) {
setApr({