-
Borrowing
+
+ Borrowing
-
-
Borrow rate
+
+ Borrow rate
{formatPercent(borrowRate || 0)}
>
)}
-
-
Route
+
+ Route
{parsedRoutes}
@@ -98,12 +105,3 @@ export default function TradeSummary(props: Props) {
)
}
-
-const className = {
- container:
- 'flex flex-1 flex-col bg-white bg-opacity-5 rounded border-[1px] border-white border-opacity-20 ',
- title: 'text-xs font-bold mb-2',
- summaryWrapper: 'flex flex-1 flex-col m-3',
- infoLine: 'flex flex-1 flex-row text-xs text-white justify-between mb-1',
- infoLineLabel: 'opacity-40',
-}
diff --git a/src/components/Trade/TradeModule/SwapForm/index.tsx b/src/components/Trade/TradeModule/SwapForm/index.tsx
index 1ee14959..d0d5b493 100644
--- a/src/components/Trade/TradeModule/SwapForm/index.tsx
+++ b/src/components/Trade/TradeModule/SwapForm/index.tsx
@@ -27,7 +27,7 @@ import { BNCoin } from 'types/classes/BNCoin'
import { byDenom } from 'utils/array'
import { defaultFee } from 'utils/constants'
import { getCapLeftWithBuffer } from 'utils/generic'
-import { BN, asyncThrottle } from 'utils/helpers'
+import { asyncThrottle, BN } from 'utils/helpers'
interface Props {
buyAsset: Asset
@@ -138,24 +138,6 @@ export default function SwapForm(props: Props) {
return maxBuyableAmountEstimation.multipliedBy(marginRatio)
}, [marginRatio, maxBuyableAmountEstimation])
- const [buyAssetValue, sellAssetValue] = useMemo(() => {
- const buyAssetPrice = prices.find(byDenom(buyAsset.denom))?.amount ?? BN_ZERO
- const sellAssetPrice = prices.find(byDenom(sellAsset.denom))?.amount ?? BN_ZERO
-
- return [
- buyAssetPrice.multipliedBy(buyAssetAmount.shiftedBy(-buyAsset.decimals)),
- sellAssetPrice.multipliedBy(sellAssetAmount.shiftedBy(-sellAsset.decimals)),
- ]
- }, [
- prices,
- buyAsset.denom,
- buyAsset.decimals,
- sellAsset.denom,
- sellAsset.decimals,
- buyAssetAmount,
- sellAssetAmount,
- ])
-
const swapTx = useMemo(() => {
const borrowCoin = sellAssetAmount.isGreaterThan(sellSideMarginThreshold)
? BNCoin.fromDenomAndBigNumber(
@@ -262,7 +244,6 @@ export default function SwapForm(props: Props) {
amount={buyAssetAmount}
setAmount={onChangeBuyAmount}
asset={buyAsset}
- assetUSDValue={buyAssetValue}
maxButtonLabel='Max Amount:'
disabled={isConfirming}
/>
@@ -286,7 +267,6 @@ export default function SwapForm(props: Props) {
max={maxSellAmount}
amount={sellAssetAmount}
setAmount={onChangeSellAmount}
- assetUSDValue={sellAssetValue}
asset={sellAsset}
maxButtonLabel='Balance:'
disabled={isConfirming}