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
90e23e69
Commit
90e23e69
authored
Feb 10, 2025
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
b47b4097
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
30 deletions
+32
-30
RELEASE
RELEASE
+7
-7
VERSION
VERSION
+1
-1
TradeInfoRow.tsx
...c/features/transactions/swap/form/footer/TradeInfoRow.tsx
+11
-10
useSwapWarnings.tsx
.../src/features/transactions/swap/hooks/useSwapWarnings.tsx
+13
-12
No files found.
RELEASE
View file @
90e23e69
IPFS hash of the deployment:
- CIDv0: `Qm
TDH8VV44KFMkkHpig7crxe3CwJkXoQqkpHhTzCLUNtAo
`
- CIDv1: `bafybei
cim34aqvkuunmxx2z6s5utcpw243kfqyw66jb3njra5jn2d2dopq
`
- CIDv0: `Qm
Z2rcWNSrFp6V7Mnv1m74ca7U6icMVKqEy8PQ5jQEd7ph
`
- CIDv1: `bafybei
e64ghzppo7dnlb2u2eg2iajamsdbhtovkdyogz2uf3rsexmrur6y
`
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
...
...
@@ -10,14 +10,14 @@ You can also access the Uniswap Interface from an IPFS gateway.
Your Uniswap settings are never remembered across different URLs.
IPFS gateways:
- https://bafybei
cim34aqvkuunmxx2z6s5utcpw243kfqyw66jb3njra5jn2d2dopq
.ipfs.dweb.link/
- [ipfs://Qm
TDH8VV44KFMkkHpig7crxe3CwJkXoQqkpHhTzCLUNtAo/](ipfs://QmTDH8VV44KFMkkHpig7crxe3CwJkXoQqkpHhTzCLUNtAo
/)
- https://bafybei
e64ghzppo7dnlb2u2eg2iajamsdbhtovkdyogz2uf3rsexmrur6y
.ipfs.dweb.link/
- [ipfs://Qm
Z2rcWNSrFp6V7Mnv1m74ca7U6icMVKqEy8PQ5jQEd7ph/](ipfs://QmZ2rcWNSrFp6V7Mnv1m74ca7U6icMVKqEy8PQ5jQEd7ph
/)
##
5.70.0
(2025-02-10)
##
# 5.70.1
(2025-02-10)
###
Featur
es
###
Bug Fix
es
* **web:**
Web Prod Unichain Hotfixes (#16016) 17efb9e
* **web:**
bridge fallback display logic (#16140) (#16147) ebe05fb
VERSION
View file @
90e23e69
web/5.70.0
\ No newline at end of file
web/5.70.1
\ No newline at end of file
packages/uniswap/src/features/transactions/swap/form/footer/TradeInfoRow.tsx
View file @
90e23e69
...
...
@@ -14,7 +14,7 @@ import { Warning, WarningLabel } from 'uniswap/src/components/modals/WarningModa
import
{
getCanonicalBridgingDappUrls
}
from
'
uniswap/src/features/bridging/constants
'
import
{
useEnabledChains
}
from
'
uniswap/src/features/chains/hooks/useEnabledChains
'
import
{
UniverseChainId
}
from
'
uniswap/src/features/chains/types
'
import
{
getChainLabel
,
toSupportedChainId
}
from
'
uniswap/src/features/chains/utils
'
import
{
getChainLabel
}
from
'
uniswap/src/features/chains/utils
'
import
{
useFormattedUniswapXGasFeeInfo
,
useGasFeeFormattedDisplayAmounts
,
...
...
@@ -27,7 +27,7 @@ import { useSwapTxContext } from 'uniswap/src/features/transactions/swap/context
import
{
NetworkFeeWarning
}
from
'
uniswap/src/features/transactions/swap/modals/NetworkFeeWarning
'
import
{
SwapRateRatio
}
from
'
uniswap/src/features/transactions/swap/review/SwapRateRatio
'
import
{
IndicativeTrade
,
Trade
}
from
'
uniswap/src/features/transactions/swap/types/trade
'
import
{
is
Bridge
,
is
UniswapX
}
from
'
uniswap/src/features/transactions/swap/utils/routing
'
import
{
isUniswapX
}
from
'
uniswap/src/features/transactions/swap/utils/routing
'
import
{
CurrencyField
}
from
'
uniswap/src/types/currency
'
import
{
useNetworkColors
}
from
'
uniswap/src/utils/colors
'
import
{
openUri
}
from
'
uniswap/src/utils/linking
'
...
...
@@ -173,6 +173,10 @@ export function TradeInfoRow({
const
warningColor
=
getAlertColor
(
warning
?.
severity
)
const
{
isTestnetModeEnabled
}
=
useEnabledChains
()
const
{
derivedSwapInfo
:
{
currencies
},
}
=
useSwapFormContext
()
if
(
isTestnetModeEnabled
)
{
return
null
}
...
...
@@ -182,12 +186,11 @@ export function TradeInfoRow({
}
// On interface, if the warning is a no quotes found warning, we want to show an external link to a canonical bridge
const
inputChainId
=
currencies
.
input
?.
currency
.
chainId
const
outputChainId
=
currencies
.
output
?.
currency
.
chainId
const
showCanonicalBridge
=
isInterface
&&
warning
?.
type
===
WarningLabel
.
NoQuotesFound
&&
!
debouncedTrade
?.
indicative
&&
debouncedTrade
&&
isBridge
(
debouncedTrade
)
isInterface
&&
warning
?.
type
===
WarningLabel
.
NoQuotesFound
&&
inputChainId
!==
outputChainId
return
(
<
Flex
centered
row
>
...
...
@@ -209,9 +212,7 @@ export function TradeInfoRow({
</
Flex
>
{
showCanonicalBridge
?
(
<
CanonicalBridgeLink
chainId=
{
toSupportedChainId
(
debouncedTrade
?.
quote
?.
quote
?.
destinationChainId
)
??
UniverseChainId
.
Mainnet
}
/>
<
CanonicalBridgeLink
chainId=
{
outputChainId
??
UniverseChainId
.
Mainnet
}
/>
)
:
debouncedTrade
?
(
<
Accordion
.
Trigger
p=
"$none"
...
...
packages/uniswap/src/features/transactions/swap/hooks/useSwapWarnings.tsx
View file @
90e23e69
...
...
@@ -266,7 +266,10 @@ export function useParsedSwapWarnings(): ParsedWarnings {
}
function
getSwapWarningFromError
(
error
:
Error
,
t
:
TFunction
,
derivedSwapInfo
:
DerivedSwapInfo
):
Warning
{
const
isBridgeTrade
=
derivedSwapInfo
.
trade
.
trade
!==
null
&&
isBridge
(
derivedSwapInfo
.
trade
.
trade
)
// Trade object is null for quote not found case
const
isBridgeTrade
=
derivedSwapInfo
.
currencies
.
input
?.
currency
.
chainId
!==
derivedSwapInfo
.
currencies
.
output
?.
currency
.
chainId
if
(
error
instanceof
FetchError
)
{
// Special case: rate limit errors are not parsed by errorCode
if
(
isRateLimitFetchError
(
error
))
{
...
...
@@ -291,18 +294,16 @@ function getSwapWarningFromError(error: Error, t: TFunction, derivedSwapInfo: De
}
}
// no bridging quotes found warning
case
Err404
.
errorCode
.
RESOURCE_NOT_FOUND
&&
isBridgeTrade
:
{
return
{
type
:
WarningLabel
.
NoQuotesFound
,
severity
:
WarningSeverity
.
Low
,
action
:
WarningAction
.
DisableReview
,
title
:
t
(
'
swap.warning.noQuotesFound.title
'
),
message
:
t
(
'
swap.warning.noQuotesFound.bridging.message
'
),
}
}
case
Err404
.
errorCode
.
RESOURCE_NOT_FOUND
:
{
if
(
isBridgeTrade
)
{
return
{
type
:
WarningLabel
.
NoQuotesFound
,
severity
:
WarningSeverity
.
Low
,
action
:
WarningAction
.
DisableReview
,
title
:
t
(
'
swap.warning.noQuotesFound.title
'
),
message
:
t
(
'
swap.warning.noQuotesFound.bridging.message
'
),
}
}
return
{
type
:
WarningLabel
.
NoRoutesError
,
severity
:
WarningSeverity
.
Low
,
...
...
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