import { ratioOceanToAsi, ratioAgixToAsi, ratioFetToAsi } from '@/constants' import { usePrices, type Prices } from '@/features/prices' import { getTokenBySymbol } from '@/lib/utils' import { TokenSymbol } from '@/types' import { useQuote, type Market } from '@/features/strategies' import { Result } from '../Result' export function SwapResults({ tokenSymbol, amount, market }: { tokenSymbol: TokenSymbol amount: number market: Market }) { const isUniswap = market === 'uniswap-v3' const { prices, isValidating: isValidatingPrices, isLoading: isLoadingPrices } = usePrices() const { amountToOcean: amountToOceanUniswap, amountToAgix: amountToAgixUniswap, amountToFet: amountToFetUniswap, isValidatingToAgix, isLoadingToAgix, isValidatingToFet, isLoadingToFet, isValidatingToOcean, isLoadingToOcean } = useQuote(tokenSymbol, amount, isUniswap) const amountInUsd = amount * prices[tokenSymbol.toLowerCase() as keyof Prices] const amountToOcean = amountInUsd / prices.ocean const amountToAgix = amountInUsd / prices.agix const amountToFet = amountInUsd / prices.fet return ( <> ) }