diff options
| author | Adam Soltys <[email protected]> | 2026-06-24 22:59:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-24 22:59:07 -0700 |
| commit | 4d1a9aea0f6b234dfe8eb36d398002ccea6a5680 (patch) | |
| tree | 10eed0842669e73fef36888182fc556fb5e2ed15 /dev.js | |
| parent | fabfff494c5c5a76ccfb0021f3a7c0fe6f6d9577 (diff) | |
| download | coinosv3-4d1a9aea0f6b234dfe8eb36d398002ccea6a5680.tar.gz coinosv3-4d1a9aea0f6b234dfe8eb36d398002ccea6a5680.zip | |
Allow gifting the whole balance (no-change sweep) via Max
A gift PSBT commits a sender change output (>= dust), so the entered amount
always needed gift + 294 — making it impossible to gift the entire balance.
Add a Max toggle on the gift form that builds a no-change sweep: all inputs
SIGHASH_NONE, no change output, so the recipient gets the whole balance minus
their claim fee. previewGift/buildClaimTx now treat a zero-output PSBT as
zero change. A specific-amount gift that can't keep a dust change now points
the user to Max instead of failing with a confusing 'not enough funds'.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'dev.js')
0 files changed, 0 insertions, 0 deletions
