Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
9562d46d
Commit
9562d46d
authored
Aug 28, 2024
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
c75d595f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
51 deletions
+22
-51
RELEASE
RELEASE
+7
-46
VERSION
VERSION
+1
-1
hooks.tsx
apps/web/src/state/swap/hooks.tsx
+14
-4
No files found.
RELEASE
View file @
9562d46d
IPFS hash of the deployment:
- CIDv0: `Qm
dkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL
`
- CIDv1: `bafybei
hfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu
`
- CIDv0: `Qm
ZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8
`
- CIDv1: `bafybei
feiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44
`
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
...
...
@@ -10,54 +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://bafybei
hfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu
.ipfs.dweb.link/
- https://bafybei
hfa45bbn7mpgu5phtqvg5w3s3bmcabkb5kdp6gkndkcnunwdbffu
.ipfs.cf-ipfs.com/
- [ipfs://Qm
dkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL/](ipfs://QmdkgTrLeXsNsutYMS3KcRCpLA69uupUtXk4fbLJTtxitL
/)
- https://bafybei
feiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44
.ipfs.dweb.link/
- https://bafybei
feiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44
.ipfs.cf-ipfs.com/
- [ipfs://Qm
ZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/](ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8
/)
## 5.44.0 (2024-08-28)
### Features
* **web:** adding v4 everywhere feature flag (#10886) 5b065e9
* **web:** enhanced dropdown component in prep for v4 changes (#11070) 6e4565c
* **web:** new pools page and rename old pools pages (#11004) 7b774cc
* **web:** tamaguify explore page (charts) (incl. snapshots) (#11117) 8485f71
* **web:** tamaguify explore page (tables) (incl. snapshots) (#11118) e29104d
* **web:** use uniswap currency info (#11064) 00da3f5
### 5.44.1 (2024-08-28)
### Bug Fixes
* **web:** add error policy all to balances web query (#11176) 1100abe
* **web:** dont double format amountOut (#11111) d4d3df2
* **web:** extraneous useClickOutside for DropdownSelector components (#11109) 501adb9
* **web:** fallback to common bases (#11140) 0fac4f6
* **web:** fix button label on add/v2 page (#11156) 31b7462
* **web:** fix modal height for absolute-positioned modal contents (#11152) 0b2919c
* **web:** fix switchChain for single-chain wallets (#11342) 9621efe
* **web:** remove redirect from landing page when connected (#11207) dc75f2a
* **web:** remove second language selection menu (#11263) 62eeedf
* **web:** tdp pdp tamagui staging hotfix (#11311) fa0312e
* **web:** Use neutralContrast for Add Liq and Preview buttons - staging (#11315) ca38bad
* **web:** Use neutralContrast for Swap button (#11065) 962f3e5
* **web:** use reduceRight instead of findLastIndex for activeIndex (#11201) 1adceb3
* **web:** use updated Arb Xv2 experiment name & update UniswapX SDK (#11058) a54ba3e
* **web:** Volume Explore chart TimeSelector colors - staging (#11322) 8e2a763
### Continuous Integration
* **web:** update sitemaps 3c8a16c
### Code Refactoring
* **web:** tamaguify buy form (#10981) 3743d77
### Tests
* **web:** useCurrencyInfo (#11085) 92adc3b
* **web:** use input/output currency info for parsed trade amounts (#11392) 1c5baf6
VERSION
View file @
9562d46d
web/5.44.0
\ No newline at end of file
web/5.44.1
\ No newline at end of file
apps/web/src/state/swap/hooks.tsx
View file @
9562d46d
...
...
@@ -2,7 +2,7 @@ import { Currency, CurrencyAmount, TradeType } from '@uniswap/sdk-core'
import
{
Field
}
from
'
components/swap/constants
'
import
{
CHAIN_IDS_TO_NAMES
,
useSupportedChainId
}
from
'
constants/chains
'
import
{
NATIVE_CHAIN_ID
}
from
'
constants/tokens
'
import
{
useCurrency
}
from
'
hooks/Tokens
'
import
{
useCurrency
,
useCurrencyInfo
}
from
'
hooks/Tokens
'
import
{
useAccount
}
from
'
hooks/useAccount
'
import
useAutoSlippageTolerance
from
'
hooks/useAutoSlippageTolerance
'
import
{
useDebouncedTrade
}
from
'
hooks/useDebouncedTrade
'
...
...
@@ -141,6 +141,12 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
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
{
independentField
,
typedValue
}
=
state
const
{
inputTax
,
outputTax
}
=
useSwapTaxes
(
...
...
@@ -156,8 +162,12 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
const
isExactIn
:
boolean
=
independentField
===
Field
.
INPUT
const
parsedAmount
=
useMemo
(
()
=>
tryParseCurrencyAmount
(
typedValue
,
(
isExactIn
?
inputCurrency
:
outputCurrency
)
??
undefined
),
[
inputCurrency
,
isExactIn
,
outputCurrency
,
typedValue
],
()
=>
tryParseCurrencyAmount
(
typedValue
,
(
isExactIn
?
inputCurrencyInfo
?.
currency
:
outputCurrencyInfo
?.
currency
)
??
undefined
,
),
[
inputCurrencyInfo
,
isExactIn
,
outputCurrencyInfo
,
typedValue
],
)
const
trade
:
{
...
...
@@ -167,7 +177,7 @@ export function useDerivedSwapInfo(state: SwapState): SwapInfo {
}
=
useDebouncedTrade
(
isExactIn
?
TradeType
.
EXACT_INPUT
:
TradeType
.
EXACT_OUTPUT
,
parsedAmount
,
(
isExactIn
?
outputCurrency
:
inputC
urrency
)
??
undefined
,
(
isExactIn
?
outputCurrency
Info
?.
currency
:
inputCurrencyInfo
?.
c
urrency
)
??
undefined
,
state
.
routerPreferenceOverride
as
RouterPreference
.
API
|
undefined
,
account
.
address
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment