Skip to content

Fix spec drifting in the design document - #82

Open
fedgiac wants to merge 1 commit into
amounts-checkfrom
fix-spec-drift
Open

Fix spec drifting in the design document#82
fedgiac wants to merge 1 commit into
amounts-checkfrom
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.

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