Fixed decimals for leverage in dashboard
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
6fe4eb342f
commit
c12acfae11
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue