Skip to content

Commit bc43cae

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

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
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: `QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8`
3-
- CIDv1: `bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44`
2+
- CIDv0: `QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1`
3+
- CIDv1: `bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a`
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://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.dweb.link/
14-
- https://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.cf-ipfs.com/
15-
- [ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/](ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/)
13+
- https://bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a.ipfs.dweb.link/
14+
- https://bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a.ipfs.cf-ipfs.com/
15+
- [ipfs://QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1/](ipfs://QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1/)
1616

17-
### 5.44.1 (2024-08-28)
17+
### 5.44.2 (2024-08-29)
1818

1919

2020
### Bug Fixes
2121

22-
* **web:** use input/output currency info for parsed trade amounts (#11392) 1c5baf6
22+
* **web:** use input and output currency info for derived swap info - … (#11399) 758f343
2323

2424

VERSION

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

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

+8-13
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,17 @@ export function useSwapActionHandlers(): {
134134
// from the current swap inputs, compute the best trade and return it.
135135
export function useDerivedSwapInfo(state: SwapState): SwapInfo {
136136
const account = useAccount()
137-
const {
138-
chainId,
139-
currencyState: { inputCurrency, outputCurrency },
140-
} = useSwapAndLimitContext()
137+
const { chainId, currencyState } = useSwapAndLimitContext()
141138
const nativeCurrency = useNativeCurrency(chainId)
142139
const balance = useCurrencyBalance(account.address, nativeCurrency)
143140

144141
// Note: if the currency was selected from recent searches
145142
// we don't have decimals (decimals are 0) need to fetch
146143
// full currency info with useCurrencyInfo otherwise quotes will break
147-
const inputCurrencyInfo = useCurrencyInfo(inputCurrency)
148-
const outputCurrencyInfo = useCurrencyInfo(outputCurrency)
144+
const inputCurrencyInfo = useCurrencyInfo(currencyState.inputCurrency)
145+
const outputCurrencyInfo = useCurrencyInfo(currencyState.outputCurrency)
146+
const inputCurrency = inputCurrencyInfo?.currency
147+
const outputCurrency = outputCurrencyInfo?.currency
149148

150149
const { independentField, typedValue } = state
151150

@@ -162,12 +161,8 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
162161

163162
const isExactIn: boolean = independentField === Field.INPUT
164163
const parsedAmount = useMemo(
165-
() =>
166-
tryParseCurrencyAmount(
167-
typedValue,
168-
(isExactIn ? inputCurrencyInfo?.currency : outputCurrencyInfo?.currency) ?? undefined,
169-
),
170-
[inputCurrencyInfo, isExactIn, outputCurrencyInfo, typedValue],
164+
() => tryParseCurrencyAmount(typedValue, (isExactIn ? inputCurrency : outputCurrency) ?? undefined),
165+
[inputCurrency, isExactIn, outputCurrency, typedValue],
171166
)
172167

173168
const trade: {
@@ -177,7 +172,7 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
177172
} = useDebouncedTrade(
178173
isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT,
179174
parsedAmount,
180-
(isExactIn ? outputCurrencyInfo?.currency : inputCurrencyInfo?.currency) ?? undefined,
175+
(isExactIn ? outputCurrency : inputCurrency) ?? undefined,
181176
state.routerPreferenceOverride as RouterPreference.API | undefined,
182177
account.address,
183178
)

0 commit comments

Comments
 (0)