swap: make long destination amounts scrollable
What changed, and why it matters
This commit makes a single on-screen message scrollable. When swapping cryptocurrency, the destination amount can be very long and previously may have been cut off or unreadable. The change lets the user scroll through the full text before confirming. There is no security issue visible in the code change itself.
No security action required. Review as normal UI/UX improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds scrollable: true to a ConfirmParams struct used when displaying a SWAP confirmation body in payment_request.rs. This is a UI/UX change enabling vertical scrolling for long destination-amount strings. No logic, validation, cryptographic, or authorization code is modified.
Changed components
src/rust/bitbox02-rust/src/hww/api/payment_request.rsInspect captured patch +1 / −0
diff --git a/src/rust/bitbox02-rust/src/hww/api/payment_request.rs b/src/rust/bitbox02-rust/src/hww/api/payment_request.rs
index 3551140..f5095b1 100644
--- a/src/rust/bitbox02-rust/src/hww/api/payment_request.rs
+++ b/src/rust/bitbox02-rust/src/hww/api/payment_request.rs
@@ -157,6 +157,7 @@ pub async fn user_verify(
.confirm(&ConfirmParams {
title: "SWAP",
body: &swap_body,
+ scrollable: true,
accept_is_nextarrow: true,
..Default::default()
})
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.