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
bc43caee
Commit
bc43caee
authored
Aug 29, 2024
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
9562d46d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
21 deletions
+16
-21
RELEASE
RELEASE
+7
-7
VERSION
VERSION
+1
-1
hooks.tsx
apps/web/src/state/swap/hooks.tsx
+8
-13
No files found.
RELEASE
View file @
bc43caee
IPFS hash of the deployment:
IPFS hash of the deployment:
- CIDv0: `Qm
ZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8
`
- CIDv0: `Qm
SoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1
`
- CIDv1: `bafybei
feiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44
`
- CIDv1: `bafybei
ccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a
`
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://bafybei
feiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44
.ipfs.dweb.link/
- https://bafybei
ccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a
.ipfs.dweb.link/
- https://bafybei
feiis4hkmwrylskrtqbxi5gihb3ztslxofmhcdjzx5xargflvk44
.ipfs.cf-ipfs.com/
- https://bafybei
ccjlkewwmtc7kfcudsiwftcnjxtldt42laqnvbs3o66xagosz52a
.ipfs.cf-ipfs.com/
- [ipfs://Qm
ZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8/](ipfs://QmZPr5CPy9FEkEB3hD3UbCf1ZgPK1HS6CyVtwq9kUFV7d8
/)
- [ipfs://Qm
SoRoBJ1TPLdsbuk9ZHUhYTBT3qvVkBKZQSEZLCUySwy1/](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
VERSION
View file @
bc43caee
web/5.44.1
web/5.44.2
\ No newline at end of file
\ No newline at end of file
apps/web/src/state/swap/hooks.tsx
View file @
bc43caee
...
@@ -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
?
outputCurrency
Info
?.
currency
:
inputCurrencyInfo
?.
c
urrency
)
??
undefined
,
(
isExactIn
?
outputCurrency
:
inputC
urrency
)
??
undefined
,
state
.
routerPreferenceOverride
as
RouterPreference
.
API
|
undefined
,
state
.
routerPreferenceOverride
as
RouterPreference
.
API
|
undefined
,
account
.
address
,
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