Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: amount withdrawn after multiple withdrawals #255

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

smol-ninja
Copy link
Member

@smol-ninja smol-ninja commented Sep 20, 2024

Closes #251

Includes a test that compares the sum of withdrawn amount through multiple withdrawals with the expected withdrawn amount if there were no precision loss in division.

Note: this test fails against main branch.

@smol-ninja smol-ninja force-pushed the test/multiple-withdrawals branch from 47cc4cb to 2a3a044 Compare September 21, 2024 07:40
@smol-ninja smol-ninja force-pushed the test/multiple-withdrawals branch from 2a3a044 to c971673 Compare September 21, 2024 07:41
@smol-ninja
Copy link
Member Author

Pushed the changes @andreivladbrg. lmk if it looks good now.

@smol-ninja smol-ninja mentioned this pull request Sep 21, 2024
3 tasks
Copy link
Member

@andreivladbrg andreivladbrg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

I have renamed the test to "WithdrawNoDelay" as "MultipleWithdrawals" was not that precise ed9cae0

@smol-ninja
Copy link
Member Author

Thanks for approving @andreivladbrg. The name WithdrawNoDelay looks good to me.

@smol-ninja smol-ninja merged commit f7b1b01 into fix/precision-issue Sep 22, 2024
5 of 7 checks passed
@smol-ninja smol-ninja deleted the test/multiple-withdrawals branch September 22, 2024 14:27
smol-ninja added a commit that referenced this pull request Sep 22, 2024
* test: amount withdrawn after multiple withdrawals

* test: rename mvt to scaleFactor

* test: rename test to "withdraw no delay"

test: polish delay test

---------

Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
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.

2 participants