Repository navigation
fix: size ios quickpay invoices from the wallet quote - #327
Conversation
@send_2 on iOS still sent a fixed 10,000-sat invoice that should exceed the $5 QuickPay limit. At about $4.98 it no longer does, so QuickPay pays it and the test times out waiting for the review screen. iOS now uses the same quote-based amounts as Android. Verified: tsc, eslint and prettier on the spec
The above-limit invoice now has the same quote-based size on both platforms, so both assert the review screen shows it and its USD value is above $5. Verified: tsc, eslint and prettier on the spec
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Drops the iOS fixed amounts in quickPayInvoiceAmounts, so iOS sizes the QuickPay invoices from the displayed USD quote like Android, and runs the review-screen amount and USD > $5 checks on both platforms. Reviewed 388e11c, light tier, not built here (e2e specs need the simulator stack).
What I checked, and 3 candidates I ruled out
Read in full: test/specs/send.e2e.ts at the head.
Run evidence: bitkit-ios run 47434281120 cloned this repo at 388e11c84fcf08f03e1ef33738d7386aa60d9f1f and @send_2 @ios_gate passed on its first attempt; the one failure in that spec run was retried and passed, and @send_2 was skipped as already done. This repo has no PR checks of its own.
Ruled out
- iOS top-up loop under-funds the review invoice: at about 2,008 sats per dollar,
smallSatsis 1,000 andaboveCapSatsis about 16,000, so spending goes 4,000 to 14,000 to 24,000 and passes theaboveCapSats + 2_000bound. Each top-up stays at 10,000 sats, under the per-payment inbound limit noted in the comment. TotalBalance-secondarynot a USD value on iOS:displayedUsdasserts the$symbol first, so a missing or different fiat display fails loudly instead of producing a wrong rate. The iOS run passed that check.- Android regression from removing the
isAndroidguard: Android already ran the same two assertions. The change only adds them on iOS.
Merge confidence: 5/5, the changed spec passed on the iOS gate at this exact head.
piotr-iohk
left a comment
There was a problem hiding this comment.
The shared test now uses the wallet’s USD quote on iOS and checks manual review above $5. The iOS master gate passed @send_2 on this revision, and TypeScript, ESLint, and Prettier passed. iOS gate
#326 fixed the Android side of
@send_2, but iOS still sends a fixed 10,000-sat invoice that should exceed the $5 QuickPay limit. At today's rate (about $4.98), QuickPay pays it, and the test times out waiting for the review screen. Failed iOS runThis PR applies the same quote-based amounts to iOS. The automatic invoices are worth at most $1 each, and the review invoice is worth $8. Both platforms now also check that the review screen shows the invoice amount and a USD value above $5. On iOS, this adds one more 10,000-sat Lightning top-up before the review invoice.
Verification
@send_2passed on the first attempt.@boost_2(RBF, unrelated) passed on its retry.Models used
Claude Opus 5.5(reasoning:medium)Gemini 4 Neon(reasoning:high)