From 2b2137716cc2d65f571d2fabf790bf1d4851da7b Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 25 Feb 2026 18:55:42 +0700 Subject: [PATCH] Add transaction confirmation screen and password modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New send flow: Send → Confirm → Password → Broadcast. Send view: collects To (with ENS resolution), Amount, Token. "Review" button advances to confirmation. No password field. Confirm Transaction view: shows From, To (with ENS name), Amount (with USD value), and runs pre-send checks: - Scam address warning (checked against local blocklist) - Self-send warning - Insufficient balance error (disables Send button) Password modal: full-screen overlay, appears only after user clicks Send on the confirmation screen. Decrypts the wallet secret, signs and broadcasts the transaction. Wrong password is caught inline. scamlist.js: hardcoded set of known scam/fraud addresses (Tornado Cash sanctioned, drainer contracts, address poisoning). Checked locally, no external API. --- src/popup/index.html | 109 +++++++++++++++++---- src/popup/index.js | 4 +- src/popup/views/confirmTx.js | 179 +++++++++++++++++++++++++++++++++++ src/popup/views/helpers.js | 1 + src/popup/views/send.js | 91 ++++++------------ src/shared/scamlist.js | 48 ++++++++++ 6 files changed, 349 insertions(+), 83 deletions(-) create mode 100644 src/popup/views/confirmTx.js create mode 100644 src/shared/scamlist.js diff --git a/src/popup/index.html b/src/popup/index.html index 15bc326..d259a0b 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -298,27 +298,12 @@ placeholder="0.0" /> - -
- -

- Required to authorize the transaction. -

- -
+ + + + + + +