Skip to content

docs: fix the escrow release: bullet describing the replaced split algorithm - #195

Open
chmm195 wants to merge 1 commit into
MergeFi:mainfrom
chmm195:docs/escrow-release-split-bullet
Open

docs: fix the escrow release: bullet describing the replaced split algorithm#195
chmm195 wants to merge 1 commit into
MergeFi:mainfrom
chmm195:docs/escrow-release-split-bullet

Conversation

@chmm195

@chmm195 chmm195 commented Aug 24, 2026

Copy link
Copy Markdown

Closes #108.

README only, one bullet.

The release: bullet under contracts/escrow still described the pre-#25/#55 behaviour — last recipient absorbs the integer-division remainder — which the Split rounding and dust section 50 lines earlier explicitly calls out as the old algorithm. Verified against compute_split in contracts/escrow/src/lib.rs: it is largest-remainder with stable input-order tie-breaking, as the earlier section describes.

The replacement states the rule inline (floor(distributable * bps / 10000), dust to the largest fractional remainders, stable tie-break) and links down to the detailed section rather than restating all of it, so the two cannot drift apart again the same way.

I kept the "no dust is stranded in the contract" guarantee, since it is still true, and added that recipient order carries no economic weight — that was the actual point of the change in #25, and it is the part a reader of this bullet most needs to know.

Rewrapped the bullet to the ~72 column width the rest of the file uses; the diff is a little wider than the one changed sentence for that reason.

The bullet said the last recipient absorbs the integer-division
remainder, which was replaced by largest-remainder allocation in MergeFi#25/MergeFi#55.
It contradicted the 'Split rounding and dust' section 50 lines above in
the same file.

Describe largest-remainder rounding and link to that section.

Closes MergeFi#108
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

@chmm195 is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

README.md's escrow release: description still describes the old last-recipient-absorbs-remainder split algorithm

1 participant