Skip to content

Commit

Permalink
CR: update
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Oct 19, 2023
1 parent 54ed023 commit b15dcc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import {
makeLimitOrder,
makePossibleMarketOrder,
useSwap,
useSwapCreateOrder,
useSwapPoolsByPair,
useSwapTokensByPairToken,
} from '@yoroi/swap'
import {makeLimitOrder, makePossibleMarketOrder, useSwap, useSwapCreateOrder, useSwapPoolsByPair} from '@yoroi/swap'
import {Swap} from '@yoroi/types'
import BigNumber from 'bignumber.js'
import * as React from 'react'
Expand Down Expand Up @@ -44,7 +37,6 @@ export const CreateOrder = () => {
const {track} = useMetrics()
const {isBuyTouched, isSellTouched, poolDefaulted} = useSwapTouched()
const [sellBackendError, setSellBackendError] = React.useState('')
useSwapTokensByPairToken('', {suspense: false, enabled: false})

useSwapPoolsByPair(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,11 @@ export const SelectBuyTokenFromListScreen = () => {
const TokenList = () => {
const strings = useStrings()
const wallet = useSelectedWallet()
const {pairsByToken, refetch} = useSwapTokensByPairToken('')
const {pairsByToken} = useSwapTokensByPairToken('')
const {search: assetSearchTerm} = useSearch()
const balances = useBalances(wallet)
const walletTokenIds = Amounts.toArray(balances).map(({tokenId}) => tokenId)

React.useEffect(() => {
refetch()
}, [refetch])

const tokens: Array<Balance.Token> = React.useMemo(() => {
if (pairsByToken === undefined) return []
return pairsByToken
Expand Down

0 comments on commit b15dcc1

Please sign in to comment.