import { ratioOceanToAsi, ratioAgixToAsi, ratioFetToAsi } from '@/constants' import { getTokenBySymbol } from '@/lib' import { type TokenSymbol } from '@/types' import { usePrices, type Prices } from '@/features/prices' import { type Market, useQuote } 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].usd const amountToOcean = amountInUsd / prices.ocean.usd const amountToAgix = amountInUsd / prices.agix.usd const amountToFet = amountInUsd / prices.fet.usd return ( <> ) }