ci(release): publish latest release

parent 9562d46d
IPFS hash of the deployment: IPFS hash of the deployment:
- CIDv0: `QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8` - CIDv0: `QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1`
- CIDv1: `bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44` - CIDv1: `bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a`
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org). The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
...@@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway. ...@@ -10,15 +10,15 @@ You can also access the Uniswap Interface from an IPFS gateway.
Your Uniswap settings are never remembered across different URLs. Your Uniswap settings are never remembered across different URLs.
IPFS gateways: IPFS gateways:
- https://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.dweb.link/ - https://bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a.ipfs.dweb.link/
- https://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.cf-ipfs.com/ - https://bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a.ipfs.cf-ipfs.com/
- [ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/](ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/) - [ipfs://QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1/](ipfs://QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1/)
### 5.44.1 (2024-08-28) ### 5.44.2 (2024-08-29)
### Bug Fixes ### Bug Fixes
* **web:** use input/output currency info for parsed trade amounts (#11392) 1c5baf6 * **web:** use input and output currency info for derived swap info - … (#11399) 758f343
web/5.44.1 web/5.44.2
\ No newline at end of file \ No newline at end of file
...@@ -134,18 +134,17 @@ export function useSwapActionHandlers(): { ...@@ -134,18 +134,17 @@ export function useSwapActionHandlers(): {
// from the current swap inputs, compute the best trade and return it. // from the current swap inputs, compute the best trade and return it.
export function useDerivedSwapInfo(state: SwapState): SwapInfo { export function useDerivedSwapInfo(state: SwapState): SwapInfo {
const account = useAccount() const account = useAccount()
const { const { chainId, currencyState } = useSwapAndLimitContext()
chainId,
currencyState: { inputCurrency, outputCurrency },
} = useSwapAndLimitContext()
const nativeCurrency = useNativeCurrency(chainId) const nativeCurrency = useNativeCurrency(chainId)
const balance = useCurrencyBalance(account.address, nativeCurrency) const balance = useCurrencyBalance(account.address, nativeCurrency)
// Note: if the currency was selected from recent searches // Note: if the currency was selected from recent searches
// we don't have decimals (decimals are 0) need to fetch // we don't have decimals (decimals are 0) need to fetch
// full currency info with useCurrencyInfo otherwise quotes will break // full currency info with useCurrencyInfo otherwise quotes will break
const inputCurrencyInfo = useCurrencyInfo(inputCurrency) const inputCurrencyInfo = useCurrencyInfo(currencyState.inputCurrency)
const outputCurrencyInfo = useCurrencyInfo(outputCurrency) const outputCurrencyInfo = useCurrencyInfo(currencyState.outputCurrency)
const inputCurrency = inputCurrencyInfo?.currency
const outputCurrency = outputCurrencyInfo?.currency
const { independentField, typedValue } = state const { independentField, typedValue } = state
...@@ -162,12 +161,8 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo { ...@@ -162,12 +161,8 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
const isExactIn: boolean = independentField === Field.INPUT const isExactIn: boolean = independentField === Field.INPUT
const parsedAmount = useMemo( const parsedAmount = useMemo(
() => () => tryParseCurrencyAmount(typedValue, (isExactIn ? inputCurrency : outputCurrency) ?? undefined),
tryParseCurrencyAmount( [inputCurrency, isExactIn, outputCurrency, typedValue],
typedValue,
(isExactIn ? inputCurrencyInfo?.currency : outputCurrencyInfo?.currency) ?? undefined,
),
[inputCurrencyInfo, isExactIn, outputCurrencyInfo, typedValue],
) )
const trade: { const trade: {
...@@ -177,7 +172,7 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo { ...@@ -177,7 +172,7 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
} = useDebouncedTrade( } = useDebouncedTrade(
isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT, isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT,
parsedAmount, parsedAmount,
(isExactIn ? outputCurrencyInfo?.currency : inputCurrencyInfo?.currency) ?? undefined, (isExactIn ? outputCurrency : inputCurrency) ?? undefined,
state.routerPreferenceOverride as RouterPreference.API | undefined, state.routerPreferenceOverride as RouterPreference.API | undefined,
account.address, account.address,
) )
......
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