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

Develop Liquidation Mechanism for Under-Collateralized Positions #5

Open
brolag opened this issue Sep 29, 2024 · 0 comments
Open

Develop Liquidation Mechanism for Under-Collateralized Positions #5

brolag opened this issue Sep 29, 2024 · 0 comments
Labels
stretch goal Optional task in case we have time

Comments

@brolag
Copy link
Owner

brolag commented Sep 29, 2024

Description: Design and implement a liquidation mechanism to handle under-collateralized positions, ensuring the system's stability.

Subtasks:

  • Implement function to check if a user’s position is under-collateralized.
  • Add functionality to liquidate under-collateralized positions by burning eUSD and taking ETH from the vault.
  • Write unit tests to simulate liquidation scenarios and ensure functionality.

Acceptance Criteria:

  • Liquidation logic works as expected for under-collateralized users.
  • eUSD and collateral are updated correctly after liquidation.
  • Unit tests for liquidation scenarios pass.
@brolag brolag added the stretch goal Optional task in case we have time label Sep 29, 2024
Repository owner deleted a comment Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stretch goal Optional task in case we have time
Projects
None yet
Development

No branches or pull requests

1 participant