Skip to content

feat; [Test] Assert fee math prevents zero-loss rounding errors#447

Open
Happybello365 wants to merge 3 commits into
Web3Novalabs:mainfrom
Happybello365:main
Open

feat; [Test] Assert fee math prevents zero-loss rounding errors#447
Happybello365 wants to merge 3 commits into
Web3Novalabs:mainfrom
Happybello365:main

Conversation

@Happybello365
Copy link
Copy Markdown

Description
If fees calculate rounding errors, token fragments become permanently stranded representing lost capital value.

Explicit Expectations

Spin test paths confirming math where splits involve odd un-divisible token subsets.
Ensure the protocol absorbs loss fragments rather than sticking users.
Acceptance Criteria

Dust tokens settle predictably on the protocol balancing variables.
Contributor checklist:

Ensure the project builds successfully.
Add or update tests for all new/changed logic.
Make sure all tests pass.
Run the formatter / linter so code is properly formatted and consistent.
closes #349

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.

[Test] Assert fee math prevents zero-loss rounding errors

1 participant