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

driver informs solver about flashloan hints #3216

Open
Tracked by #3213
MartinquaXD opened this issue Jan 7, 2025 · 0 comments
Open
Tracked by #3213

driver informs solver about flashloan hints #3216

MartinquaXD opened this issue Jan 7, 2025 · 0 comments

Comments

@MartinquaXD
Copy link
Contributor

MartinquaXD commented Jan 7, 2025

The driver needs to inform the connected solver about the flashloan hints attached to an order (i.e. extend API schema).
This is important for a few reasons:

  1. the driver needs to be aware that that particular order incurs greater gas costs due to the additional flashloan wrapper call
  2. the trader might not have the required sell_token balance for the order but that's irrelevant if the necessary funds can get flashloaned into the settlement
  3. depending on which flashloan provider is chosen (e.g. balancer v2, uniswap, aave) it may influence which AMMs can be used to route the liquidity

Especially for reason 3 it's also important to let solvers return in their solution which flashloan provider, token and amounts they would like to use (i.e. extend API schema). This information should be optional for backwards compatibility. If they don't return any information the driver will just pick the information provided by the user in the appdata field while encoding the transaction.

@MartinquaXD MartinquaXD changed the title driver informs solver about flashloan hints (no dependencies) driver informs solver about flashloan hints Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant