-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update last total assets in updateWithdrawQueue #337
Conversation
Comments on morpho-org/metamorpho-v1.1#2 to address |
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.
my comments on the former PR need to be addressed pls
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.
misclicked
Co-authored-by: Romain Milon <[email protected]> Signed-off-by: Jean-Grimal <[email protected]>
Co-authored-by: Romain Milon <[email protected]> Signed-off-by: Jean-Grimal <[email protected]>
Co-authored-by: Merlin Egalite <[email protected]> Signed-off-by: Jean-Grimal <[email protected]>
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 forced removed market removal reducing the fee is not an issue to me: the fee is called a performance fee, and having to remove a market is part of the risk of the vault managers. It's up to vault managers to decide if they want to accrue interest right after removing a market, to start accruing fees again
@@ -360,6 +370,9 @@ contract MetaMorpho is ERC4626, ERC20Permit, Ownable2Step, Multicall, IMetaMorph | |||
|
|||
withdrawQueue = newWithdrawQueue; | |||
|
|||
// Accrue interest on all the enabled markets except the removed ones. |
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.
Wait this does not accrue interest ?
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.
// Accrue interest on all the enabled markets except the removed ones. | |
// Accrue fee on all the enabled markets except the removed ones. |
Interesting take. Out of curiosity, how would you recommend to do so? |
Yes, or deposit 1 atomic asset on behalf of a dummy address |
Replaced with #359 |
Fixes https://cantina.xyz/ai/8409a0ce-6c21-4cc9-8ef2-bd77ce7425af/findings/5a81700d-ff95-422a-be37-e24f7e4d50a9