-
Notifications
You must be signed in to change notification settings - Fork 40
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
Do we still need the external accrueInterest
#399
Comments
#171 is to be used inside So I'm for keeping both |
isn't Edit: yes https://eips.ethereum.org/EIPS/eip-4626#maxwithdraw Edit1: I agree that there might be some use-cases, but it might be a little bit niche |
Yes, but you could want, upon withdraw, to override the default ERC4626's behavior by first accruing interest (optimistically), then calculate It's a niche example I agree, can't we think of another similar which motivates keeping both? |
in practice you would maxWithdraw the shares but ok you could |
@QGarchery is highlighting me that this function can be useful to make a contract to help feeReceiver withdrawMax (but literally useful to one person so I don't think it's worth it) |
Discussed with @PaulFrambot, we're having a hard time to find a usecase for this function. So I think we should remove it. |
With #171 merged, do we still need this external function ?
https://github.com/morpho-labs/morpho-blue/blob/453c185ec94587143240ea234977509bdcc20d9f/src/Morpho.sol#L436-L441
The text was updated successfully, but these errors were encountered: