Repository URL to install this package:
|
Version:
0.0.1 ▾
|
import { getCurrencyCombinations, Token, Type } from '@sushiswap/currency'
import { useMemo } from 'react'
export function useCurrencyCombinations(chainId?: number, currencyA?: Type, currencyB?: Type): [Token, Token][] {
return useMemo(
() => (chainId && currencyA && currencyB ? getCurrencyCombinations(chainId, currencyA, currencyB) : []),
[chainId, currencyA, currencyB]
)
}