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

flashloan e2e test #3219

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

flashloan e2e test #3219

MartinquaXD opened this issue Jan 7, 2025 · 0 comments

Comments

@MartinquaXD
Copy link
Contributor

MartinquaXD commented Jan 7, 2025

This task should be tackled last in the flashloan support initiative.
If e2e tests covering some aspects of the whole flow got implemented during the feature development they can now be consolidated into 1 e2e test.

Elements that need to be tested / done in this test:

  • set up the protocol and a few AMMs
  • deploy a flashloan provider (depending on how hard this is to set up it can either be a regular flashloan provider - balancer, uniswap, etc - or perhaps another helper contract that is only used for testing)
  • create an order with a flashloan hint in the appdata
  • await the order getting executed (make sure that the user funds and AMM states are set up such that it's impossible to settle the trade without the flashloan)
  • assert that the order got executed
  • assert that the protocol indexed the settlement transaction correctly (DB should not store the helper contract as the solver that executed the address)
@MartinquaXD MartinquaXD changed the title flashloan e2e test (depends on all subtasks) flashloan e2e test 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