-
Notifications
You must be signed in to change notification settings - Fork 47
fix: unit tests #808
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
fix: unit tests #808
Conversation
fixes error
rflechtner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two rounding functions have very similar tasks, can we give them similar names?
rflechtner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u 🪨 !
|
Is it me or this PR also contains changes from a different PR? I see a new line added for the |
|
Yes, I combined two smaller PRs here. The changes are intendant. |
Fixes #3685
Some clean-ups:
Fixed-point numbers are rounded. When minting, the requested amount and the calculated collateral are rounded up, while during burning, they are rounded down. This ensures that there is always sufficient collateral during burning.
Some errors have been mapped.