refactor: allow missing input for useSwapTaxes (#7498)

This commit is contained in:
Charles Bachmeier 2023-10-20 09:54:13 -07:00 committed by GitHub
parent 36242d14b0
commit 226fc441a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -72,7 +72,7 @@ async function getSwapTaxes(
return { inputTax, outputTax }
}
export function useSwapTaxes(inputTokenAddress: string | undefined, outputTokenAddress: string | undefined) {
export function useSwapTaxes(inputTokenAddress?: string, outputTokenAddress?: string) {
const fotDetector = useFeeOnTransferDetectorContract()
const [{ inputTax, outputTax }, setTaxes] = useState({ inputTax: ZERO_PERCENT, outputTax: ZERO_PERCENT })
const { chainId } = useWeb3React()