Commit 226fc441 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

refactor: allow missing input for useSwapTaxes (#7498)

parent 36242d14
...@@ -72,7 +72,7 @@ async function getSwapTaxes( ...@@ -72,7 +72,7 @@ async function getSwapTaxes(
return { inputTax, outputTax } return { inputTax, outputTax }
} }
export function useSwapTaxes(inputTokenAddress: string | undefined, outputTokenAddress: string | undefined) { export function useSwapTaxes(inputTokenAddress?: string, outputTokenAddress?: string) {
const fotDetector = useFeeOnTransferDetectorContract() const fotDetector = useFeeOnTransferDetectorContract()
const [{ inputTax, outputTax }, setTaxes] = useState({ inputTax: ZERO_PERCENT, outputTax: ZERO_PERCENT }) const [{ inputTax, outputTax }, setTaxes] = useState({ inputTax: ZERO_PERCENT, outputTax: ZERO_PERCENT })
const { chainId } = useWeb3React() const { chainId } = useWeb3React()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment