Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Aug 7, 2024
1 parent 08dcb0b commit f5c28b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 5 additions & 4 deletions apps/web/src/lib/wagmi/hooks/trade/use-client-trade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import {
usePrice,
} from '@sushiswap/react-query'
import { UseQueryResult, useQuery } from '@tanstack/react-query'
import { is } from 'date-fns/locale'
import { useMemo } from 'react'
import { getBigInt } from 'sushi'
import { calculateFee, slippageAmount } from 'sushi/calculate'
import { calculateFee } from 'sushi/calculate'
import {
MULTISIG_ADDRESS,
ROUTE_PROCESSOR_5_ADDRESS,
Expand All @@ -29,7 +28,9 @@ import { zeroAddress } from 'viem'
import { useGasPrice } from 'wagmi'
import { usePoolsCodeMap } from '../pools/hooks/usePoolsCodeMap'

export const useClientTrade = (variables: UseTradeParams) => {
export const useClientTrade = (
variables: UseTradeParams,
): UseQueryResult<UseTradeReturn> => {
const {
chainId,
fromToken,
Expand Down Expand Up @@ -226,5 +227,5 @@ export const useClientTrade = (variables: UseTradeParams) => {
enabled: Boolean(
enabled && poolsCodeMap && gasPrice && fromToken && toToken && chainId,
),
}) as UseQueryResult<UseTradeReturn>
})
}
2 changes: 0 additions & 2 deletions apps/web/src/ui/swap/cross-chain/cross-chain-swap-widget.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CrossChainBanner } from '../cross-chain-banner'
import { SwapModeButtons } from '../swap-mode-buttons'
import { CrossChainSwapHeader } from './cross-chain-swap-header'
import { CrossChainSwapMaintenanceMessage } from './cross-chain-swap-maintenance-message'
Expand All @@ -19,7 +18,6 @@ export const CrossChainSwapWidget = () => {
<CrossChainSwapSettingsOverlay />
</div>
<CrossChainSwapMaintenanceMessage />
{/* <CrossChainBanner /> */}
<CrossChainSwapToken0Input />
<CrossChainSwapSwitchTokensButton />
<div className="flex flex-col">
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/ui/swap/simple/simple-swap-widget.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CrossChainBanner } from '../cross-chain-banner'
import { SwapModeButtons } from '../swap-mode-buttons'
import { SimpleSwapBridgeBanner } from './simple-swap-bridge-banner'
import { SimpleSwapHeader } from './simple-swap-header'
Expand All @@ -21,7 +20,6 @@ export const SimpleSwapWidget = () => {
<SimpleSwapSettingsOverlay />
</div>
<SwapMaintenanceMessage />
{/* <CrossChainBanner /> */}
<SimpleSwapToken0Input />
<SimpleSwapSwitchTokensButton />
<div className="flex flex-col">
Expand Down

0 comments on commit f5c28b8

Please sign in to comment.