Skip to content

Fix spec drifting in the design document - #82

Merged
fedgiac merged 30 commits into
mainfrom
fix-spec-drift
Aug 4, 2026
Merged

Fix spec drifting in the design document#82
fedgiac merged 30 commits into
mainfrom
fix-spec-drift

Conversation

@fedgiac

@fedgiac fedgiac commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

We made a few design changes and the specs drifted a bit. This PR remedies that.

How to review

Make sure the changes match your current understanding of what we want to do.

@fedgiac
fedgiac requested a review from a team as a code owner July 29, 2026 12:04

@kaze-cow kaze-cow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no comments

@tilacog tilacog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just left a question.

Comment thread DESIGN.md
Buffer accounts are token accounts that hold funds on behalf of the settlement contract.

These token accounts are accessible to all solvers and effectively work like the current buffers. They are used to collect user funds, send out funds to the user, and collect fees, which stay on the buffers after the settlement. This means that the current fee accounting and withdrawal mechanism would be based on balance changes (like on Ethereum).
These token accounts are accessible to all solvers and effectively work like the current buffers. They are used to send out funds to the user and collect fees, which stay on the buffers after the settlement. This means that the current fee accounting and withdrawal mechanism would be based on balance changes (like on Ethereum).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm: buffer accounts are still used to Pull funds from users, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really: BeginSettle allows solvers to specify where to send the funds. This could be any arbitrary account, and so they don't need to even specify the sell token buffer account in the list of accounts. But if a solver wants, then the buffers can be used, so if they need it for some reason they can work with it.

Base automatically changed from amounts-check to main August 4, 2026 08:51
@fedgiac
fedgiac merged commit 3680619 into main Aug 4, 2026
14 checks passed
@fedgiac
fedgiac deleted the fix-spec-drift branch August 4, 2026 10:16
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.

3 participants