-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ensure that Morpho is the caller of onMorphoFlashLoan
#1227
Conversation
LGTM, However, it comes with a con which is that, we will lose the potential workaround to "help" some |
I'm glad you brought this up. It's good to think about this. As discussed offline, we'll keep as-is based on your last comment. |
Pull Request Test Coverage Report for Build 12938071562Details
💛 - Coveralls |
* Allow traders to specify the counterparty and fee recipient of their trades * Added a non-reentrancy modifier to `cancelOrders` (#1229)
Description
Fixes a critical vulnerability in the matching engine. Previously anyone could call
onMorphoFlashLoan
which could be used to drain approvals by circumventing the validation logic.