diff --git a/components/BorrowModal.tsx b/components/BorrowModal.tsx index f3afef71..b4e52a9d 100644 --- a/components/BorrowModal.tsx +++ b/components/BorrowModal.tsx @@ -310,7 +310,7 @@ const BorrowModal = ({ show, onClose, tokenDenom }: Props) => { - {positionsData?.coins.map((coin) => ( + {accountStats?.assets.map((coin) => ( {getTokenSymbol(coin.denom)} @@ -327,7 +327,7 @@ const BorrowModal = ({ show, onClose, tokenDenom }: Props) => { - ))} - {positionsData?.debts.map((coin) => ( + {accountStats?.debts.map((coin) => ( {getTokenSymbol(coin.denom)} diff --git a/components/Trade/TradeActionModule.tsx b/components/Trade/TradeActionModule.tsx index 26f2de93..b0d32361 100644 --- a/components/Trade/TradeActionModule.tsx +++ b/components/Trade/TradeActionModule.tsx @@ -27,6 +27,7 @@ const TradeActionModule = () => { const [selectedTokenOut, setSelectedTokenOut] = useState('') const [amountIn, setAmountIn] = useState(0) const [amountOut, setAmountOut] = useState(0) + const [slippageTolerance, setSlippageTolerance] = useState(1) const [fundingMode, setFundingMode] = useState(FundingMode.WalletAndAccount) const [isMarginEnabled, setIsMarginEnabled] = React.useState(false) @@ -87,7 +88,7 @@ const TradeActionModule = () => { depositAmount, selectedTokenIn, selectedTokenOut, - 0.1, + slippageTolerance / 100, { onSuccess: () => { toast.success( @@ -320,8 +321,18 @@ const TradeActionModule = () => {

{isMarginEnabled ? `${(borrowRate * 100).toFixed(2)}%` : '-'}

-
+
OTHER INFO PLACEHOLDER
+
+

Slippage Tolerance:

+ setSlippageTolerance(e.target.valueAsNumber)} + value={slippageTolerance} + /> +

Funded From