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 ability to liquidate using flashswap on ekubo #39

Merged
merged 23 commits into from
Aug 30, 2024

Conversation

azurwastaken
Copy link
Collaborator

Pull Request type

  • Feature

What is the current behavior?

Resolves: #19

What is the new behavior?

The bot use the contract provided by vesu that use ekubo to retrieve the debt asset by borrowing collateral, refund the debt at a discount and repay the loan.

it compute liquidatable amount, apply liqudation factor, call the contract, get call, compute profitability by substracting slippage and execution fees and if its profitable it execute the call.

Does this introduce a breaking change?

No

Other information

Need E2E to confirm that its working fine + vesu is planning to update the contract due to a bug on it

@azurwastaken azurwastaken self-assigned this Aug 30, 2024
@EvolveArt EvolveArt merged commit 9f9fb28 into main Aug 30, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

feat: Liquidate using a flashloan/swap
2 participants