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

Flash swaps #1102

Open
gregdhill opened this issue Jun 20, 2023 · 0 comments
Open

Flash swaps #1102

gregdhill opened this issue Jun 20, 2023 · 0 comments
Labels
defi enhancement New feature or request

Comments

@gregdhill
Copy link
Member

Is your feature request related to a problem? Please describe.
Liquidators and arbitrageurs need to hold a considerable amount of money in order to their trades. This greatly reduces their relative profits because its very capital inefficient.

Describe the solution you'd like
We need to enable atomic swap transactions (optimistic transactions) to allow traders making liquidations and arbitrage without any capital requirements.

Describe alternatives you've considered
Flash loans would work very similar but would require a second layer (flow: lending protocol -> DEX -> lending protocol) and the maximum swapable amount would reduce to min(capacity[lending], capacity[DEX]).

Additional context
Here is an example of a flash swap implementation on uniswap V2 https://github.com/Uniswap/v2-periphery/blob/master/contracts/examples/ExampleFlashSwap.sol

@gregdhill gregdhill added the enhancement New feature or request label Jun 20, 2023
@nud3l nud3l added the defi label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defi enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants