Skip to content

Commit

Permalink
show pi for add liquidity (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
groninge01 authored Sep 25, 2024
1 parent db66b85 commit e09d162
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Params = {

export function useAddLiquidityPriceImpactQuery({ handler, humanAmountsIn, enabled }: Params) {
const { pool, chainId } = usePool()
const { userAddress, isConnected } = useUserAccount()
const { userAddress } = useUserAccount()
const { slippage } = useUserSettings()
const debouncedHumanAmountsIn = useDebounce(humanAmountsIn, defaultDebounceMs)[0]
const { data: blockNumber } = useBlockNumber({ chainId })
Expand All @@ -42,7 +42,7 @@ export function useAddLiquidityPriceImpactQuery({ handler, humanAmountsIn, enabl
return useQuery({
queryKey,
queryFn,
enabled: enabled && isConnected && !areEmptyAmounts(debouncedHumanAmountsIn),
enabled: enabled && !areEmptyAmounts(debouncedHumanAmountsIn),
gcTime: 0,
meta: sentryMetaForAddLiquidityHandler('Error in add liquidity priceImpact query', {
...params,
Expand Down

0 comments on commit e09d162

Please sign in to comment.