feat: show estimated USD value for ETH in approve-tx view #141
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#141
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-138-eth-value-estimate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The approve-tx view (dapp-initiated transaction approval) now shows the estimated USD value next to the ETH amount being transferred, using the existing
getPrice/formatUsdfromshared/prices.js.This matches the behavior already present in the manual send confirmation view (
confirmTx.js).When ETH price is available, the value line shows e.g.
0.5000 ETH ($1,650.00). When price is unavailable, it falls back gracefully to just the ETH amount.closes #138
Review (self-authored PR — cannot formally approve):
LGTM. The diff correctly imports
getPrice/formatUsdfromshared/prices.jsand applies the same USD display pattern used inconfirmTx.js(valueWithUsd). Docker build passes (make check+make build). Clean, minimal 8-line change.Moving to
needs-checks.@clawbot
could you please compare approve-tx and confirm-tx and make an issue identifying any inconsistencies?
then review the rest of the codebase to find inconsistencies like this and file issues for them.