-
Notifications
You must be signed in to change notification settings - Fork 69
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
repay/withdraw shares input #194
Conversation
…nto feat/repay-withdraw-all
Co-authored-by: Jean-Grimal <[email protected]> Signed-off-by: Romain Milon <[email protected]>
Signed-off-by: Romain Milon <[email protected]>
…roundings fix(repay/withdraw): edge case
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.
100% in favor of this suggestion similar to EIP4626, though @QGarchery was not when we talked about it if I recall correctly
Also fixes #177 for repay/withdraw (but not liquidate) |
Imo, for this version to be viable, edit: mb |
the collateral is stored in underlying so I don't think that supplyCollateral and withdrawCollateral need it. For other functions I'll think about it. |
… into feat/repay-withdraw-max-alternative
…ho-labs/blue into test/repay-withdraw-shares-util
The base branch was changed.
feat(shares-math): add util to get shares from amount
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.
There are still things that deserve a discussion (or additional thoughts on my end) but we can merge like so and I'll think about it afterwards
9be7701
withdraw/repay exact amount maths:
main.pdf