getting quotes from unsiwap

This commit is contained in:
2025-12-09 18:19:34 -04:00
parent 1c2e267136
commit a2a036818d
2 changed files with 240 additions and 0 deletions

View File

@@ -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">