docs(standards): document that note scripts claim only remaining note assets - #3650
Merged
mmagician merged 6 commits intoAug 21, 2026
Merged
Conversation
… assets Standard note scripts move the assets remaining in a note at consumption time and do not compare them against the note's initial assets info. Per the discussion in #3601 this is intentional (it enables authorized deductions such as fees), so document the behavior where notes claim their assets. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The PSWAP offered-amount drain is being fixed directly in a follow-up PR rather than documented as accepted behavior, so remove the PSWAP hazard warnings from this docs change. The neutral remaining-vs-initial wording is kept consistent with the rest of the standards pass, and the SWAP note (whose loss is consumer-side and not being changed) stays documented here. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
mmagician
commented
Aug 20, 2026
Co-authored-by: Marti <marcin.gorny.94@protonmail.com>
mmagician
marked this pull request as ready for review
August 20, 2026 20:27
Co-authored-by: zeapoz <zeapo@pm.me>
mmagician
deleted the
mmagician-claude/docs-note-scripts-remaining-assets
branch
August 21, 2026 14:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the behavior discussed in #3601: standard note scripts claim the assets remaining in a note at consumption time, not the assets the note was funded with.
This is documentation only, and as pointed out in this comment, it
closes #3601
PSWAP is fixed in a stacked follow-up
PSWAP is the one standard script where the remaining-vs-initial distinction is not a benign characteristic but an economic drain: it prices the fill and sizes the creator's remainder note from the remaining offered amount.