Revert "hide est liq price due to client error"
This reverts commit ea0b3129f7
.
This commit is contained in:
parent
92ffb7bc72
commit
2761dd3b26
|
@ -137,7 +137,7 @@ const PerpPositions = () => {
|
|||
<Th className="text-left">{t('market')}</Th>
|
||||
<Th className="text-right">{t('trade:size')}</Th>
|
||||
<Th className="text-right">{t('trade:avg-entry-price')}</Th>
|
||||
{/* <Th>
|
||||
<Th>
|
||||
<div className="flex justify-end">
|
||||
<Tooltip content={t('trade:tooltip-est-liq-price')}>
|
||||
<span className="tooltip-underline">
|
||||
|
@ -145,7 +145,7 @@ const PerpPositions = () => {
|
|||
</span>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</Th> */}
|
||||
</Th>
|
||||
<Th className="text-right">{t('trade:unrealized-pnl')}</Th>
|
||||
{!isUnownedAccount ? <Th /> : null}
|
||||
</TrHead>
|
||||
|
@ -176,10 +176,10 @@ const PerpPositions = () => {
|
|||
const roe =
|
||||
(unrealizedPnl / (Math.abs(basePosition) * avgEntryPrice)) *
|
||||
100
|
||||
// const estLiqPrice = position.getLiquidationPriceUi(
|
||||
// group,
|
||||
// mangoAccount,
|
||||
// )
|
||||
const estLiqPrice = position.getLiquidationPriceUi(
|
||||
group,
|
||||
mangoAccount,
|
||||
)
|
||||
|
||||
return (
|
||||
<TrBody
|
||||
|
@ -245,7 +245,7 @@ const PerpPositions = () => {
|
|||
/>
|
||||
</div>
|
||||
</Td>
|
||||
{/* <Td className="text-right font-mono">
|
||||
<Td className="text-right font-mono">
|
||||
{estLiqPrice ? (
|
||||
<FormatNumericValue
|
||||
value={estLiqPrice}
|
||||
|
@ -255,7 +255,7 @@ const PerpPositions = () => {
|
|||
) : (
|
||||
'–'
|
||||
)}
|
||||
</Td> */}
|
||||
</Td>
|
||||
<Td className="text-right font-mono">
|
||||
<div className="flex flex-col items-end ">
|
||||
<Tooltip
|
||||
|
@ -326,9 +326,9 @@ const PerpPositions = () => {
|
|||
<Td className="text-right font-mono">
|
||||
<></>
|
||||
</Td>
|
||||
{/* <Td className="text-right font-mono">
|
||||
<Td className="text-right font-mono">
|
||||
<></>
|
||||
</Td> */}
|
||||
</Td>
|
||||
<Td className="text-right font-mono">
|
||||
<div className="flex justify-end items-center">
|
||||
<span className="font-body mr-2 text-xs text-th-fgd-3">
|
||||
|
@ -399,10 +399,10 @@ const PerpPositions = () => {
|
|||
const realizedPnl = position.getRealizedPnlUi()
|
||||
const roe =
|
||||
(unrealizedPnl / (Math.abs(basePosition) * avgEntryPrice)) * 100
|
||||
// const estLiqPrice = position.getLiquidationPriceUi(
|
||||
// group,
|
||||
// mangoAccount,
|
||||
// )
|
||||
const estLiqPrice = position.getLiquidationPriceUi(
|
||||
group,
|
||||
mangoAccount,
|
||||
)
|
||||
const unsettledPnl = position.getUnsettledPnlUi(market)
|
||||
const notional = Math.abs(floorBasePosition) * market._uiPrice
|
||||
return (
|
||||
|
@ -533,7 +533,7 @@ const PerpPositions = () => {
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
{/* <div className="col-span-1">
|
||||
<div className="col-span-1">
|
||||
<Tooltip
|
||||
content={t('trade:tooltip-est-liq-price')}
|
||||
>
|
||||
|
@ -552,7 +552,7 @@ const PerpPositions = () => {
|
|||
'–'
|
||||
)}
|
||||
</p>
|
||||
</div> */}
|
||||
</div>
|
||||
<div className="col-span-1">
|
||||
<p className="text-xs text-th-fgd-3">
|
||||
{t('trade:unsettled')} {t('pnl')}
|
||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -1014,6 +1014,11 @@
|
|||
resolved "https://registry.yarnpkg.com/@noble/ed25519/-/ed25519-1.7.3.tgz#57e1677bf6885354b466c38e2b620c62f45a7123"
|
||||
integrity sha512-iR8GBkDt0Q3GyaVcIu7mSsVIqnFbkbRzGLWlvhwunacoLwt4J3swfKhfaM6rN6WY+TBGoYT1GtT1mIh2/jGbRQ==
|
||||
|
||||
"@noble/hashes@1.3.0":
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.0.tgz#085fd70f6d7d9d109671090ccae1d3bec62554a1"
|
||||
integrity sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==
|
||||
|
||||
"@noble/hashes@1.3.1", "@noble/hashes@^1.1.3", "@noble/hashes@^1.3.0", "@noble/hashes@~1.3.0", "@noble/hashes@~1.3.1":
|
||||
version "1.3.1"
|
||||
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.1.tgz#8831ef002114670c603c458ab8b11328406953a9"
|
||||
|
@ -1954,7 +1959,7 @@
|
|||
dependencies:
|
||||
"@wallet-standard/base" "^1.0.1"
|
||||
|
||||
"@solana/wallet-standard-features@^1.1.0":
|
||||
"@solana/wallet-standard-features@^1.0.1", "@solana/wallet-standard-features@^1.1.0":
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@solana/wallet-standard-features/-/wallet-standard-features-1.1.0.tgz#516d78626dd0802d299db49298e4ebbec3433940"
|
||||
integrity sha512-oVyygxfYkkF5INYL0GuD8GFmNO/wd45zNesIqGCFE6X66BYxmI6HmyzQJCcZTZ0BNsezlVg4t+3MCL5AhfFoGA==
|
||||
|
@ -7523,6 +7528,11 @@ reduce-css-calc@^2.1.8:
|
|||
css-unit-converter "^1.1.1"
|
||||
postcss-value-parser "^3.3.0"
|
||||
|
||||
regenerator-runtime@^0.13.11:
|
||||
version "0.13.11"
|
||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
|
||||
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==
|
||||
|
||||
regenerator-runtime@^0.14.0:
|
||||
version "0.14.0"
|
||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45"
|
||||
|
|
Loading…
Reference in New Issue