temp: remove liquidation price (#661)
This commit is contained in:
parent
176ccd74bd
commit
0cba668c82
@ -3,7 +3,6 @@ import debounce from 'lodash.debounce'
|
|||||||
import React, { useEffect, useMemo, useState } from 'react'
|
import React, { useEffect, useMemo, useState } from 'react'
|
||||||
|
|
||||||
import ActionButton from 'components/Button/ActionButton'
|
import ActionButton from 'components/Button/ActionButton'
|
||||||
import { CircularProgress } from 'components/CircularProgress'
|
|
||||||
import DisplayCurrency from 'components/DisplayCurrency'
|
import DisplayCurrency from 'components/DisplayCurrency'
|
||||||
import Divider from 'components/Divider'
|
import Divider from 'components/Divider'
|
||||||
import { FormattedNumber } from 'components/FormattedNumber'
|
import { FormattedNumber } from 'components/FormattedNumber'
|
||||||
@ -122,24 +121,6 @@ export default function TradeSummary(props: Props) {
|
|||||||
<Divider className='my-2' />
|
<Divider className='my-2' />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<>
|
|
||||||
<SummaryLine label='Liquidation Price'>
|
|
||||||
<div className='flex h-2'>
|
|
||||||
{isUpdatingLiquidationPrice ? (
|
|
||||||
<CircularProgress className='opacity-50' />
|
|
||||||
) : liquidationPrice === null || liquidationPrice === 0 ? (
|
|
||||||
'-'
|
|
||||||
) : (
|
|
||||||
<FormattedNumber
|
|
||||||
className='inline'
|
|
||||||
amount={liquidationPrice}
|
|
||||||
options={{ abbreviated: true, prefix: `${props.buyAsset.symbol} = $ ` }}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</SummaryLine>
|
|
||||||
<Divider className='my-2' />
|
|
||||||
</>
|
|
||||||
<SummaryLine label={`Swap fees (${(swapFee || 0.002) * 100}%)`}>
|
<SummaryLine label={`Swap fees (${(swapFee || 0.002) * 100}%)`}>
|
||||||
<DisplayCurrency coin={BNCoin.fromDenomAndBigNumber(sellAsset.denom, swapFeeValue)} />
|
<DisplayCurrency coin={BNCoin.fromDenomAndBigNumber(sellAsset.denom, swapFeeValue)} />
|
||||||
</SummaryLine>
|
</SummaryLine>
|
||||||
|
Loading…
Reference in New Issue
Block a user