Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@sushiswap/wagmi / package / systems / PoolFinder / LegacyPool.tsx
Size: Mime:
import { FC, useEffect } from 'react'

import { usePair } from '../../hooks'
import { LegacyPoolFinderProps, PoolFinderType } from './types'

export const LegacyPool: FC<LegacyPoolFinderProps> = ({ chainId, dispatch, token0, token1, index }) => {
  const { data: state } = usePair(chainId, token0, token1)

  useEffect(() => {
    if (!dispatch || index === undefined) return

    dispatch({
      type: 'update',
      payload: {
        state,
        index,
        poolType: PoolFinderType.Classic,
      },
    })
  }, [dispatch, index, state])

  return <></>
}