Skip to content

Commit 922a412

Browse files
ci(release): publish latest release
1 parent 746db53 commit 922a412

File tree

4 files changed

+26
-24
lines changed

4 files changed

+26
-24
lines changed

RELEASE

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
IPFS hash of the deployment:
2-
- CIDv0: `QmNtGELVTA6qcn1ftK8VnJE1wz8yZdDQC89cs6dK6hHs1i`
3-
- CIDv1: `bafybeiaidevumwytkxmfm5otaerhlvgpiawod6owbx5wayykk5ghg5vj2e`
2+
- CIDv0: `QmSFSxn2NQ8LP2HZckSX6WkmwGz9SQudXWqsQ9ShJKRZSb`
3+
- CIDv1: `bafybeib2dgh2xulteyu7s2lwepf2oyuwf63k3cpxeb5ogcnemn3cdsmpjq`
44

55
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
66

@@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
1010
Your Uniswap settings are never remembered across different URLs.
1111

1212
IPFS gateways:
13-
- https://bafybeiaidevumwytkxmfm5otaerhlvgpiawod6owbx5wayykk5ghg5vj2e.ipfs.dweb.link/
14-
- https://bafybeiaidevumwytkxmfm5otaerhlvgpiawod6owbx5wayykk5ghg5vj2e.ipfs.cf-ipfs.com/
15-
- [ipfs://QmNtGELVTA6qcn1ftK8VnJE1wz8yZdDQC89cs6dK6hHs1i/](ipfs://QmNtGELVTA6qcn1ftK8VnJE1wz8yZdDQC89cs6dK6hHs1i/)
13+
- https://bafybeib2dgh2xulteyu7s2lwepf2oyuwf63k3cpxeb5ogcnemn3cdsmpjq.ipfs.dweb.link/
14+
- https://bafybeib2dgh2xulteyu7s2lwepf2oyuwf63k3cpxeb5ogcnemn3cdsmpjq.ipfs.cf-ipfs.com/
15+
- [ipfs://QmSFSxn2NQ8LP2HZckSX6WkmwGz9SQudXWqsQ9ShJKRZSb/](ipfs://QmSFSxn2NQ8LP2HZckSX6WkmwGz9SQudXWqsQ9ShJKRZSb/)
1616

17-
### 5.65.1 (2025-01-15)
17+
### 5.65.2 (2025-01-16)
1818

1919

2020
### Bug Fixes
2121

22-
* **web:** explore table should use chainId in ranking (#15144) 3834990
22+
* **web:** cherry-picks lping to reduce trading API errors (#15225) 1db3f5d
2323

2424

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web/5.65.1
1+
web/5.65.2

apps/web/src/components/IncreaseLiquidity/IncreaseLiquidityTxContext.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useIncreaseLiquidityContext } from 'components/IncreaseLiquidity/Increa
55
import { useModalLiquidityInitialState } from 'components/Liquidity/hooks'
66
import { getProtocolItems } from 'components/Liquidity/utils'
77
import { ZERO_ADDRESS } from 'constants/misc'
8+
import { getCurrencyAddressForTradingApi, getCurrencyWithWrap } from 'pages/Pool/Positions/create/utils'
89
import { PropsWithChildren, createContext, useContext, useMemo } from 'react'
910
import { useCheckLpApprovalQuery } from 'uniswap/src/data/apiClients/tradingApi/useCheckLpApprovalQuery'
1011
import { useIncreaseLpPositionCalldataQuery } from 'uniswap/src/data/apiClients/tradingApi/useIncreaseLpPositionCalldataQuery'
@@ -51,12 +52,12 @@ export function IncreaseLiquidityTxContextProvider({ children }: PropsWithChildr
5152
walletAddress: account.address,
5253
chainId: positionInfo.currency0Amount.currency.chainId,
5354
protocol: getProtocolItems(positionInfo.version),
54-
token0: positionInfo.currency0Amount.currency.isNative
55-
? ZERO_ADDRESS
56-
: positionInfo.currency0Amount.currency.address,
57-
token1: positionInfo.currency1Amount.currency.isNative
58-
? ZERO_ADDRESS
59-
: positionInfo.currency1Amount.currency.address,
55+
token0: getCurrencyAddressForTradingApi(
56+
getCurrencyWithWrap(positionInfo.currency0Amount.currency, positionInfo.version),
57+
),
58+
token1: getCurrencyAddressForTradingApi(
59+
getCurrencyWithWrap(positionInfo.currency1Amount.currency, positionInfo.version),
60+
),
6061
amount0: currencyAmounts?.TOKEN0?.quotient.toString(),
6162
amount1: currencyAmounts?.TOKEN1?.quotient.toString(),
6263
}

apps/web/src/pages/Pool/Positions/create/utils.tsx

+11-10
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,11 @@ export function getV3PriceRangeInfo({
566566
const { protocolVersion, currencies } = derivedPositionInfo
567567
const pool = derivedPositionInfo.pool
568568

569-
const sortedTokens = getSortedCurrenciesTuple(
570-
getCurrencyWithWrap(currencies[0], protocolVersion),
571-
getCurrencyWithWrap(currencies[1], protocolVersion),
572-
)
569+
const tokenA = getCurrencyWithWrap(currencies[0], protocolVersion)
570+
const tokenB = getCurrencyWithWrap(currencies[1], protocolVersion)
571+
const sortedTokens = getSortedCurrenciesTuple(tokenA, tokenB)
573572
const [sortedToken0, sortedToken1] = sortedTokens
573+
574574
const [baseCurrency, quoteCurrency] = getInvertedTuple(currencies, state.priceInverted)
575575
const [baseToken, quoteToken] = [
576576
getCurrencyWithWrap(baseCurrency, protocolVersion),
@@ -656,21 +656,22 @@ export function getV3PriceRangeInfo({
656656
!invalidRange && price && prices[0] && prices[1] && (price.lessThan(prices[0]) || price.greaterThan(prices[1])),
657657
)
658658

659+
// This is in terms of the sorted tokens
659660
const deposit0Disabled = Boolean(upperTick && poolForPosition && poolForPosition.tickCurrent >= upperTick)
660661
const deposit1Disabled = Boolean(lowerTick && poolForPosition && poolForPosition.tickCurrent <= lowerTick)
661662

662663
const depositADisabled =
663664
invalidRange ||
664665
Boolean(
665-
(deposit0Disabled && poolForPosition && baseToken && poolForPosition.token0.equals(baseToken)) ||
666-
(deposit1Disabled && poolForPosition && baseToken && poolForPosition.token1.equals(baseToken)),
666+
(deposit0Disabled && poolForPosition && tokenA && poolForPosition.token0.equals(tokenA)) ||
667+
(deposit1Disabled && poolForPosition && tokenA && poolForPosition.token1.equals(tokenA)),
667668
)
668669

669670
const depositBDisabled =
670671
invalidRange ||
671672
Boolean(
672-
(deposit0Disabled && poolForPosition && quoteToken && poolForPosition.token0.equals(quoteToken)) ||
673-
(deposit1Disabled && poolForPosition && quoteToken && poolForPosition.token1.equals(quoteToken)),
673+
(deposit0Disabled && poolForPosition && tokenB && poolForPosition.token0.equals(tokenB)) ||
674+
(deposit1Disabled && poolForPosition && tokenB && poolForPosition.token1.equals(tokenB)),
674675
)
675676

676677
return {
@@ -883,8 +884,8 @@ export function generateAddLiquidityApprovalParams({
883884
walletAddress: account.address,
884885
chainId: currencyAmounts.TOKEN0.currency.chainId,
885886
protocol: apiProtocolItems,
886-
token0: getCurrencyAddressForTradingApi(currencies[0]),
887-
token1: getCurrencyAddressForTradingApi(currencies[1]),
887+
token0: getCurrencyAddressForTradingApi(getCurrencyWithWrap(currencies[0], positionState.protocolVersion)),
888+
token1: getCurrencyAddressForTradingApi(getCurrencyWithWrap(currencies[1], positionState.protocolVersion)),
888889
amount0: currencyAmounts?.TOKEN0?.quotient.toString(),
889890
amount1: currencyAmounts?.TOKEN1?.quotient.toString(),
890891
} satisfies CheckApprovalLPRequest

0 commit comments

Comments
 (0)