Skip to content
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

Merged
merged 14 commits into from
Mar 7, 2025
Merged

Multi flashloan support #3310

merged 14 commits into from
Mar 7, 2025

Conversation

MartinquaXD
Copy link
Contributor

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

  • updated wrapper ABI files
  • generated binding for new router contract
  • updated drivers' encoding logic
  • added necessary config boilerplate code

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

@MartinquaXD MartinquaXD requested a review from a team as a code owner March 6, 2025 07:56
Copy link
Contributor

@squadgazzz squadgazzz left a 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.

Copy link
Contributor

@squadgazzz squadgazzz left a 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.

Copy link
Contributor

@mstrug mstrug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok.

Base automatically changed from flashloan-encoding to main March 7, 2025 12:31
@MartinquaXD MartinquaXD force-pushed the multi-flashloan-encoding branch from 69976ac to e797f54 Compare March 7, 2025 12:33
@MartinquaXD MartinquaXD enabled auto-merge (squash) March 7, 2025 12:36
@MartinquaXD MartinquaXD disabled auto-merge March 7, 2025 12:39
@MartinquaXD MartinquaXD enabled auto-merge (squash) March 7, 2025 12:53
@MartinquaXD MartinquaXD merged commit 30d4c68 into main Mar 7, 2025
11 checks passed
@MartinquaXD MartinquaXD deleted the multi-flashloan-encoding branch March 7, 2025 13:01
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants