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
dd7379a2
Commit
dd7379a2
authored
Mar 17, 2025
by
Uniswap Labs Service Account
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(release): publish latest release
parent
bfe93297
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
33 deletions
+37
-33
RELEASE
RELEASE
+10
-5
VERSION
VERSION
+1
-1
SwapFormButton.tsx
...ap/src/features/transactions/swap/form/SwapFormButton.tsx
+26
-27
No files found.
RELEASE
View file @
dd7379a2
IPFS hash of the deployment:
- CIDv0: `Qm
PcDN4EiXdJ2e4eH6cYKAGiYRrAh8W2hgbmDUf5GKzRGi
`
- CIDv1: `bafybei
as3bjepuy326a66fc6lsm7wr7kfo7v5z7qvjgho2s5ge4s734mk4
`
- CIDv0: `Qm
b32y1Tr36548yibWocrfwjoXvLKDe2fwiJ34vMNi6A24
`
- CIDv1: `bafybei
f4ussdpkymilubf3qmecctn52my5szafwzho24vhcxez6nvfwdpe
`
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
...
...
@@ -10,9 +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
as3bjepuy326a66fc6lsm7wr7kfo7v5z7qvjgho2s5ge4s734mk4
.ipfs.dweb.link/
- [ipfs://Qm
PcDN4EiXdJ2e4eH6cYKAGiYRrAh8W2hgbmDUf5GKzRGi/](ipfs://QmPcDN4EiXdJ2e4eH6cYKAGiYRrAh8W2hgbmDUf5GKzRGi
/)
- https://bafybei
f4ussdpkymilubf3qmecctn52my5szafwzho24vhcxez6nvfwdpe
.ipfs.dweb.link/
- [ipfs://Qm
b32y1Tr36548yibWocrfwjoXvLKDe2fwiJ34vMNi6A24/](ipfs://Qmb32y1Tr36548yibWocrfwjoXvLKDe2fwiJ34vMNi6A24
/)
### 5.76.1 (2025-03-13)
### 5.76.2 (2025-03-17)
### Bug Fixes
* **web:** fix swapping on TDP (#17378) 3000727
VERSION
View file @
dd7379a2
web/5.76.1
\ No newline at end of file
web/5.76.2
\ No newline at end of file
packages/uniswap/src/features/transactions/swap/form/SwapFormButton.tsx
View file @
dd7379a2
...
...
@@ -189,19 +189,6 @@ export function SwapFormButton({
],
)
const
handleOnReviewPress
=
useCallback
(()
=>
{
// One of these modals may or may not be showing
// If showing, hide
handleHideMaxNativeTransferModal
()
handleHideTokenWarningModal
()
onReviewPress
({
skipBridgingWarning
:
false
,
skipMaxTransferWarning
:
false
,
skipTokenProtectionWarning
:
false
,
})
},
[
handleHideMaxNativeTransferModal
,
handleHideTokenWarningModal
,
onReviewPress
])
const
bridgingModalActionCallback
=
useCallback
(
(
accepted
:
boolean
)
=>
{
setShowBridgingWarningModal
(
false
)
...
...
@@ -212,10 +199,6 @@ export function SwapFormButton({
[
onReviewPress
],
)
const
handleBridgingOnContinue
=
useCallback
(()
=>
bridgingModalActionCallback
(
true
),
[
bridgingModalActionCallback
])
const
handleBridgingOnClose
=
useCallback
(()
=>
bridgingModalActionCallback
(
false
),
[
bridgingModalActionCallback
])
const
invalidTokenSelection
=
useMemo
(()
=>
Object
.
values
(
currencies
).
some
((
currency
)
=>
!
currency
),
[
currencies
])
const
invalidAmountSelection
=
!
exactAmountFiat
&&
!
exactAmountToken
...
...
@@ -281,11 +264,7 @@ export function SwapFormButton({
// If disabled, use defaults for background color
// Otherwise, we'll try and use the color from the token (i.e. swapping on Web > TDP)
const
buttonBackgroundColor
=
disabled
?
undefined
:
!
activeAccount
||
isSubmitting
?
lightTokenColor
:
validTokenColor
const
buttonBackgroundColor
=
disabled
?
undefined
:
isInactiveAccountOrSubmitting
?
lightTokenColor
:
validTokenColor
const
buttonVariant
:
ButtonProps
[
'
variant
'
]
=
!
activeAccount
?
'
branded
'
...
...
@@ -312,7 +291,14 @@ export function SwapFormButton({
<
LowNativeBalanceModal
isOpen=
{
showMaxNativeTransferModal
}
onClose=
{
handleHideMaxNativeTransferModal
}
onAcknowledge=
{
handleOnReviewPress
}
onAcknowledge=
{
()
=>
{
handleHideMaxNativeTransferModal
()
onReviewPress
({
skipBridgingWarning
:
true
,
skipTokenProtectionWarning
:
true
,
skipMaxTransferWarning
:
true
,
})
}
}
/>
<
Flex
row
alignSelf=
"stretch"
>
<
Button
...
...
@@ -323,7 +309,13 @@ export function SwapFormButton({
backgroundColor=
{
buttonBackgroundColor
}
size=
{
isShortMobileDevice
?
'
small
'
:
'
large
'
}
testID=
{
TestID
.
ReviewSwap
}
onPress=
{
handleOnReviewPress
}
onPress=
{
()
=>
onReviewPress
({
skipBridgingWarning
:
false
,
skipMaxTransferWarning
:
false
,
skipTokenProtectionWarning
:
false
,
})
}
>
{
buttonTextColor
?
(
<
Button
.
Text
customBackgroundColor=
{
buttonBackgroundColor
}
color=
{
buttonTextColor
}
>
...
...
@@ -339,8 +331,8 @@ export function SwapFormButton({
<
BridgingModal
isOpen=
{
showBridgingWarningModal
}
derivedSwapInfo=
{
derivedSwapInfo
}
onContinue=
{
handleBridgingOnContinue
}
onClose=
{
handleBridgingOnClose
}
onContinue=
{
()
=>
bridgingModalActionCallback
(
true
)
}
onClose=
{
()
=>
bridgingModalActionCallback
(
false
)
}
/>
{
currenciesWithProtectionWarnings
.
length
>
0
&&
currenciesWithProtectionWarnings
[
0
]
&&
(
<
TokenWarningModal
...
...
@@ -348,7 +340,14 @@ export function SwapFormButton({
currencyInfo0=
{
currenciesWithProtectionWarnings
[
0
]
}
currencyInfo1=
{
currenciesWithProtectionWarnings
.
length
>
1
?
currenciesWithProtectionWarnings
[
1
]
:
undefined
}
closeModalOnly=
{
handleHideTokenWarningModal
}
onAcknowledge=
{
handleOnReviewPress
}
onAcknowledge=
{
()
=>
{
handleHideTokenWarningModal
()
onReviewPress
({
skipBridgingWarning
:
false
,
skipMaxTransferWarning
:
false
,
skipTokenProtectionWarning
:
true
,
})
}
}
/>
)
}
</
Flex
>
...
...
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