-
Notifications
You must be signed in to change notification settings - Fork 81
Fix roundings #78
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
Comments
Cool, I thought it would be a difficult problem as in morpho-v1, but we have a clear way of fixing rounding errors here ! In morpho-v1, you had the issue that you were sometimes starting from an amount in underlying (by using the main entry points), and sometimes starting from an scaled amount (by matching/unmatching users). This meant that it was unclear what rounding in favor of the protocol meant. For liquidations, starting from the amount seized, I think we can round in the following way:
|
I'm fixing this via #71 |
Noted by @pakim249CAL, we don't round correctly (meaning rounding in favor of the protocol) everywhere (borrow/withdraw).
The text was updated successfully, but these errors were encountered: