-
Notifications
You must be signed in to change notification settings - Fork 96
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
Multi flashloan support #3310
Multi flashloan support #3310
Conversation
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.
Approving, in case it is required to be merged before a follow-up e2e test is implemented.
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.
Approving, in case it is required to be merged before a follow-up e2e test is implemented.
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.
Looks ok.
69976ac
to
e797f54
Compare
Description
cowprotocol/flash-loan-wrapper-solver#9 updated the flashloan contracts to support multiple loans in a single settlement. Based on the included e2e test I updated the driver's encoding logic. Which contracts needs to get approved and where to move the funds remained unchanged. The only real difference is that the router is now always the target of the call and we pass details of each loan it should take out into it's function call together with the underlying
settle()
call.Changes
How to test
so far I only updated the existing e2e test that takes out a single loan which is good enough for now
in a follow up PR we should add another e2e test that takes out 2 flashloans