Skip to content

Commit

Permalink
ci(release): publish latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-happy-puppy committed Aug 29, 2024
1 parent 9562d46 commit bc43cae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
14 changes: 7 additions & 7 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IPFS hash of the deployment:
- CIDv0: `QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8`
- CIDv1: `bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44`
- CIDv0: `QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1`
- CIDv1: `bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a`

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

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

IPFS gateways:
- https://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.dweb.link/
- https://bafybeifeiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44.ipfs.cf-ipfs.com/
- [ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/](ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/)
- https://bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a.ipfs.dweb.link/
- https://bafybeiccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a.ipfs.cf-ipfs.com/
- [ipfs://QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1/](ipfs://QmSoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1/)

### 5.44.1 (2024-08-28)
### 5.44.2 (2024-08-29)


### 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


2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web/5.44.1
web/5.44.2
21 changes: 8 additions & 13 deletions apps/web/src/state/swap/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,17 @@ export function useSwapActionHandlers(): {
// from the current swap inputs, compute the best trade and return it.
export function useDerivedSwapInfo(state: SwapState): SwapInfo {
const account = useAccount()
const {
chainId,
currencyState: { inputCurrency, outputCurrency },
} = useSwapAndLimitContext()
const { chainId, currencyState } = useSwapAndLimitContext()
const nativeCurrency = useNativeCurrency(chainId)
const balance = useCurrencyBalance(account.address, nativeCurrency)

// Note: if the currency was selected from recent searches
// we don't have decimals (decimals are 0) need to fetch
// full currency info with useCurrencyInfo otherwise quotes will break
const inputCurrencyInfo = useCurrencyInfo(inputCurrency)
const outputCurrencyInfo = useCurrencyInfo(outputCurrency)
const inputCurrencyInfo = useCurrencyInfo(currencyState.inputCurrency)
const outputCurrencyInfo = useCurrencyInfo(currencyState.outputCurrency)
const inputCurrency = inputCurrencyInfo?.currency
const outputCurrency = outputCurrencyInfo?.currency

const { independentField, typedValue } = state

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

const isExactIn: boolean = independentField === Field.INPUT
const parsedAmount = useMemo(
() =>
tryParseCurrencyAmount(
typedValue,
(isExactIn ? inputCurrencyInfo?.currency : outputCurrencyInfo?.currency) ?? undefined,
),
[inputCurrencyInfo, isExactIn, outputCurrencyInfo, typedValue],
() => tryParseCurrencyAmount(typedValue, (isExactIn ? inputCurrency : outputCurrency) ?? undefined),
[inputCurrency, isExactIn, outputCurrency, typedValue],
)

const trade: {
Expand All @@ -177,7 +172,7 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
} = useDebouncedTrade(
isExactIn ? TradeType.EXACT_INPUT : TradeType.EXACT_OUTPUT,
parsedAmount,
(isExactIn ? outputCurrencyInfo?.currency : inputCurrencyInfo?.currency) ?? undefined,
(isExactIn ? outputCurrency : inputCurrency) ?? undefined,
state.routerPreferenceOverride as RouterPreference.API | undefined,
account.address,
)
Expand Down

0 comments on commit bc43cae

Please sign in to comment.