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

Feat: add DEX Pools and Pairs creation utils #11

Open
nine-december opened this issue Nov 20, 2022 · 2 comments
Open

Feat: add DEX Pools and Pairs creation utils #11

nine-december opened this issue Nov 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@nine-december
Copy link
Collaborator

Feature: Pool and Pair creation under utils folder

Overview: This utility has to allow users to quickly instantiate and create DEX pairs to enable broader test scenarios that depend on custom token pairs.

@nine-december nine-december added the enhancement New feature or request label Nov 20, 2022
@nine-december
Copy link
Collaborator Author

nine-december commented Dec 16, 2022

Leaving ideas that came up while we kept working on this:

The ideal util should process input tokens that the attacker has and receive a parameter to determine the output tokens of the process. Inside the black-boxed util flashloans are made as well as swaps from the currently owned tokens to repayment tokens. Also, should handle the repayment.

Maybe we will need to have the util with separate functions. One to trigger the flashloan and another one to handle the swaps and the repayments as they will likely happen inside the flashloan callback (located in the attacker's contract).

@mkjp81
Copy link

mkjp81 commented Jan 3, 2023

It would be nice to be able to calculate how much input tokens are needed to generate certain price deviation in a different pool state scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants