Skip to content

Commit 9562d46

Browse files
ci(release): publish latest release
1 parent c75d595 commit 9562d46

File tree

3 files changed

+22
-51
lines changed

3 files changed

+22
-51
lines changed

RELEASE

+7-46
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
IPFS hash of the deployment:
2-
- CIDv0: `QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL`
3-
- CIDv1: `bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu`
2+
- CIDv0: `QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8`
3+
- CIDv1: `bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44`
44

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

@@ -10,54 +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://bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu.ipfs.dweb.link/
14-
- https://bafybeihfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu.ipfs.cf-ipfs.com/
15-
- [ipfs://QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL/](ipfs://QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL/)
13+
- https://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.dweb.link/
14+
- https://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.cf-ipfs.com/
15+
- [ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/](ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/)
1616

17-
## 5.44.0 (2024-08-28)
18-
19-
20-
### Features
21-
22-
* **web:** adding v4 everywhere feature flag (#10886) 5b065e9
23-
* **web:** enhanced dropdown component in prep for v4 changes (#11070) 6e4565c
24-
* **web:** new pools page and rename old pools pages (#11004) 7b774cc
25-
* **web:** tamaguify explore page (charts) (incl. snapshots) (#11117) 8485f71
26-
* **web:** tamaguify explore page (tables) (incl. snapshots) (#11118) e29104d
27-
* **web:** use uniswap currency info (#11064) 00da3f5
17+
### 5.44.1 (2024-08-28)
2818

2919

3020
### Bug Fixes
3121

32-
* **web:** add error policy all to balances web query (#11176) 1100abe
33-
* **web:** dont double format amountOut (#11111) d4d3df2
34-
* **web:** extraneous useClickOutside for DropdownSelector components (#11109) 501adb9
35-
* **web:** fallback to common bases (#11140) 0fac4f6
36-
* **web:** fix button label on add/v2 page (#11156) 31b7462
37-
* **web:** fix modal height for absolute-positioned modal contents (#11152) 0b2919c
38-
* **web:** fix switchChain for single-chain wallets (#11342) 9621efe
39-
* **web:** remove redirect from landing page when connected (#11207) dc75f2a
40-
* **web:** remove second language selection menu (#11263) 62eeedf
41-
* **web:** tdp pdp tamagui staging hotfix (#11311) fa0312e
42-
* **web:** Use neutralContrast for Add Liq and Preview buttons - staging (#11315) ca38bad
43-
* **web:** Use neutralContrast for Swap button (#11065) 962f3e5
44-
* **web:** use reduceRight instead of findLastIndex for activeIndex (#11201) 1adceb3
45-
* **web:** use updated Arb Xv2 experiment name & update UniswapX SDK (#11058) a54ba3e
46-
* **web:** Volume Explore chart TimeSelector colors - staging (#11322) 8e2a763
47-
48-
49-
### Continuous Integration
50-
51-
* **web:** update sitemaps 3c8a16c
52-
53-
54-
### Code Refactoring
55-
56-
* **web:** tamaguify buy form (#10981) 3743d77
57-
58-
59-
### Tests
60-
61-
* **web:** useCurrencyInfo (#11085) 92adc3b
22+
* **web:** use input/output currency info for parsed trade amounts (#11392) 1c5baf6
6223

6324

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web/5.44.0
1+
web/5.44.1

apps/web/src/state/swap/hooks.tsx

+14-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Currency, CurrencyAmount, TradeType } from '@uniswap/sdk-core'
22
import { Field } from 'components/swap/constants'
33
import { CHAIN_IDS_TO_NAMES, useSupportedChainId } from 'constants/chains'
44
import { NATIVE_CHAIN_ID } from 'constants/tokens'
5-
import { useCurrency } from 'hooks/Tokens'
5+
import { useCurrency, useCurrencyInfo } from 'hooks/Tokens'
66
import { useAccount } from 'hooks/useAccount'
77
import useAutoSlippageTolerance from 'hooks/useAutoSlippageTolerance'
88
import { useDebouncedTrade } from 'hooks/useDebouncedTrade'
@@ -141,6 +141,12 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
141141
const nativeCurrency = useNativeCurrency(chainId)
142142
const balance = useCurrencyBalance(account.address, nativeCurrency)
143143

144+
// Note: if the currency was selected from recent searches
145+
// we don't have decimals (decimals are 0) need to fetch
146+
// full currency info with useCurrencyInfo otherwise quotes will break
147+
const inputCurrencyInfo = useCurrencyInfo(inputCurrency)
148+
const outputCurrencyInfo = useCurrencyInfo(outputCurrency)
149+
144150
const { independentField, typedValue } = state
145151

146152
const { inputTax, outputTax } = useSwapTaxes(
@@ -156,8 +162,12 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
156162

157163
const isExactIn: boolean = independentField === Field.INPUT
158164
const parsedAmount = useMemo(
159-
() => tryParseCurrencyAmount(typedValue, (isExactIn ? inputCurrency : outputCurrency) ?? undefined),
160-
[inputCurrency, isExactIn, outputCurrency, typedValue],
165+
() =>
166+
tryParseCurrencyAmount(
167+
typedValue,
168+
(isExactIn ? inputCurrencyInfo?.currency : outputCurrencyInfo?.currency) ?? undefined,
169+
),
170+
[inputCurrencyInfo, isExactIn, outputCurrencyInfo, typedValue],
161171
)
162172

163173
const trade: {
@@ -167,7 +177,7 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
167177
} = useDebouncedTrade(
168178
isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT,
169179
parsedAmount,
170-
(isExactIn ? outputCurrency : inputCurrency) ?? undefined,
180+
(isExactIn ? outputCurrencyInfo?.currency : inputCurrencyInfo?.currency) ?? undefined,
171181
state.routerPreferenceOverride as RouterPreference.API | undefined,
172182
account.address,
173183
)

0 commit comments

Comments
 (0)