Repository navigation
fix max send in fiat only mode - #214
Conversation
Deploying wallet-signet with
|
| Latest commit: |
9ad992a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://9883394f.wallet-23u.pages.dev |
| Branch Preview URL: | https://fiat-ui-fix.wallet-23u.pages.dev |
WalkthroughDerive and synchronize satoshi/fiat amounts and UI state in the Send form: new effects compute sats from amount, update validation/errors/button label (including LNURL, min/max, 1-sat, balance), handle Ark server reachability, adjust proceed flow (including submarine-swap) and update send-all behavior. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Form as Send Form
participant Effects as Derived Effects
participant Validators as Validators/Rules
participant Nav as Navigator
User->>Form: Enter amount / toggle send-all
Form->>Effects: amount changed
Effects->>Effects: Normalize amount → compute satoshis (fiat↔sats)
Effects->>Validators: Validate sats vs availableBalance, LNURL limits, min/max, 1-sat
Validators-->>Form: Update error text & button label
Effects->>Effects: Check Ark server reachability → set unreachable error/label if needed
User->>Form: Click proceed
Form->>Effects: proceed flag true
Effects->>Effects: If valid & proceed -> handle pendingSwap/submarine-swap or route to SendDetails
Effects->>Nav: Navigate to next screen
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-06-30T18:33:29.839ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying wallet-mutinynet with
|
| Latest commit: |
9ad992a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://826ff8a9.arkade-wallet.pages.dev |
| Branch Preview URL: | https://fiat-ui-fix.arkade-wallet.pages.dev |
Deploying wallet-bitcoin with
|
| Latest commit: |
9ad992a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f4a9a2b5.wallet-bitcoin.pages.dev |
| Branch Preview URL: | https://fiat-ui-fix.wallet-bitcoin.pages.dev |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/screens/Wallet/Send/Form.tsx(3 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-06-30T18:33:29.839Z
Learnt from: bordalix
Repo: arkade-os/wallet PR: 114
File: src/lib/asp.ts:0-0
Timestamp: 2025-06-30T18:33:29.839Z
Learning: In src/lib/asp.ts, only the collaborativeExit function should accept both IWallet and ServiceWorkerWallet types. Other wallet functions (getBalance, getTxHistory, getReceivingAddresses, redeemNotes, sendOnChain, settleVtxos) should maintain their original IWallet-only signatures and not be updated for consistency.
Applied to files:
src/screens/Wallet/Send/Form.tsx
|
@bordalix the fix makes it possible to send max, but the amount in sats is still wrong if you switch to EUR. Video.del.2025-11-11.13-43-37.mp4In this test (with https://ef49b01c.wallet-bitcoin.pages.dev/), I received 1000 sats and sent MAX. |
|
pass as for the huddle @bordalix |
Fixes bug when clicking MAX button in Send when in fiat only mode.
Summary by CodeRabbit