Fixed decimals for leverage in dashboard

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-03-21 16:55:21 +01:00
parent 6fe4eb342f
commit c12acfae11
1 changed files with 6 additions and 6 deletions

View File

@ -524,14 +524,14 @@ const Dashboard: NextPage = () => {
)}/ )}/
${perpMarket.maintBaseLiabWeight.toFixed( ${perpMarket.maintBaseLiabWeight.toFixed(
4 4
)} (maint leverage: ${ )} (maint leverage: ${(
1 / 1 /
(perpMarket.maintBaseLiabWeight.toNumber() - perpMarket.maintBaseLiabWeight.toNumber() -
1)
}x, init leverage: ${
1 / perpMarket.initBaseLiabWeight.toNumber() -
1 1
})`} ).toFixed(2)}x, init leverage: ${(
1 /
(perpMarket.initBaseLiabWeight.toNumber() - 1)
).toFixed(2)}x)`}
/> />
<KeyValuePair <KeyValuePair
label="Init Asset/Liab Weight" label="Init Asset/Liab Weight"