getting quotes from unsiwap
This commit is contained in:
@@ -11,6 +11,7 @@ import { useTokenDetails, useGetPoolsByToken, type TokenDetails } from '@/hooks/
|
||||
import { useSwapAmounts, useSwap, selectBestSwapRoute, type ActualSwapAmounts } from '@/hooks/usePartyPool';
|
||||
import { formatUnits, parseUnits } from 'viem';
|
||||
import { SwapReviewModal } from './swap-review-modal';
|
||||
import UniswapQuote from './uniswap-quote';
|
||||
|
||||
type TransactionStatus = 'idle' | 'pending' | 'success' | 'error';
|
||||
|
||||
@@ -404,6 +405,11 @@ export function SwapForm() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Uniswap Quote */}
|
||||
{fromAmount && (
|
||||
<UniswapQuote amountIn={fromAmount} />
|
||||
)}
|
||||
|
||||
{/* Gas Estimate, Slippage, and Fees */}
|
||||
{isConnected && fromAmount && toAmount && (
|
||||
<div className="px-4 py-2 bg-muted/30 rounded-lg space-y-2">
|
||||
|
||||
Reference in New Issue
Block a user