Skip to content

Conversation

@jonathanchw
Copy link
Collaborator

Summary

Improves SAFE withdraw interface for fiat and crypto operations.

Changes

Fiat Withdraw

  • Filter assets to only dEURO/ZCHF with auto-mapped target currency
  • Remove "You get about" section
  • Update confirm button text

Crypto Withdraw

  • Replace "Send" with "Withdraw" terminology in UI
  • Filter addresses to Ethereum-only (no "Switch address" option)

jonathanchw and others added 9 commits December 8, 2025 17:38
- Rename findBalanceString to findCustodyBalanceString for clarity
- Add onSourceAssetChange callback to reset fields when source asset changes
- Filter swap target assets to exclude selected source asset
- Fix address overflow in send interface with break-all
- Improve receive interface validation logic
- Adjust BankAccountSelector positioning and modal margins
- Fix payment info rendering when targetAsset is undefined
- Fiat withdraw: filter assets to only dEURO/ZCHF, auto-map target currency
- Fiat withdraw: remove 'You get about' section, update confirm button text
- Crypto withdraw: change 'Send' terminology to 'Withdraw' in UI
- Crypto withdraw: filter addresses to Ethereum only, remove 'Switch address' option
- Add confirmButtonLabel prop to OrderInterface and PaymentInfo components
@jonathanchw jonathanchw requested a review from Danswar December 9, 2025 03:04
Copy link
Collaborator

@Danswar Danswar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The layout is broken, there seems to be a button behind the selector?

Image

@Danswar
Copy link
Collaborator

Danswar commented Dec 9, 2025

I can't select ZCHF here

1) Withdraw (fiat withdraw)
- Only dEURO, ZCHF can be withdrawn (similar to fiat deposit)
Screenshot 2025-12-09 at 7 42 13 PM

@Danswar
Copy link
Collaborator

Danswar commented Dec 10, 2025

Please fix the alignment in this table

Screenshot 2025-12-10 at 9 32 29 AM

@jonathanchw
Copy link
Collaborator Author

#771 (comment)

ZCHF is not available because the test account only has dEURO, USDT, and ETH balance.

WITHDRAW_PAIRS is automatically derived by inverting DEPOSIT_PAIRS:

  • dEURO → EUR
  • ZCHF → CHF

dEURO → Is in WITHDRAW_PAIRS and has balance (1345.2)
ZCHF → Is in WITHDRAW_PAIRS but has no balance (or is 0)

You can only withdraw what you have in your Safe.

@jonathanchw jonathanchw requested a review from Danswar December 10, 2025 19:09
Copy link
Collaborator

@Danswar Danswar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix translations

@jonathanchw jonathanchw requested a review from Danswar December 11, 2025 14:23
@jonathanchw jonathanchw merged commit 7522b7e into DFXswiss:develop Dec 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants