Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove old swap & liquidity code #11181

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/src/hooks/useStablecoinPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useCakePrice } from 'hooks/useCakePrice'
import { useMemo } from 'react'
import { warningSeverity } from 'utils/exchange'
import { multiplyPriceByAmount } from 'utils/prices'
import { computeTradePriceBreakdown } from 'views/Swap/V3Swap/utils/exchange'
import { computeTradePriceBreakdown } from 'views/Swap/utils/exchange'
import { useActiveChainId } from './useActiveChainId'
import { useBestAMMTrade } from './useBestAMMTrade'
import { useCurrencyUsdPrice } from './useCurrencyUsdPrice'
Expand Down
8 changes: 1 addition & 7 deletions apps/web/src/pages/swap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { CHAIN_IDS } from 'utils/wagmi'
import SwapLayout from 'views/Swap/SwapLayout'
import Swap from 'views/Swap'

const SwapPage = () => (
<SwapLayout>
<Swap />
</SwapLayout>
)
const SwapPage = () => <></>

SwapPage.chains = CHAIN_IDS
SwapPage.screen = true
Expand Down
56 changes: 0 additions & 56 deletions apps/web/src/state/swap/fetch/fetchBestPriceWithRouter.ts

This file was deleted.

44 changes: 0 additions & 44 deletions apps/web/src/state/swap/normalizers.ts

This file was deleted.

13 changes: 0 additions & 13 deletions apps/web/src/state/swap/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,3 @@ export type DerivedPairDataNormalized = {
token0DerivedUSD: number
token1DerivedUSD: number
}[]

export type PairPricesNormalized = {
time: Date
value: number
}[]

export enum TradeState {
INVALID,
LOADING,
NO_ROUTE_FOUND,
SYNCING,
VALID,
}
102 changes: 0 additions & 102 deletions apps/web/src/views/AddLiquidity/ChoosePair.tsx

This file was deleted.

Loading
Loading