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

Create Controller Contract to Orchestrate the System #4

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

Create Controller Contract to Orchestrate the System #4

brolag opened this issue Sep 29, 2024 · 0 comments
Assignees
Labels
priority Priority task for the project

Comments

@brolag
Copy link
Owner

brolag commented Sep 29, 2024

Description: Implement the controller contract to orchestrate the minting and burning of eUSD tokens based on the users' ETH collateral in the vault.

Subtasks:

  • Implement logic to check user collateral in the vault before minting eUSD.
  • Implement the mintEUSD() function to mint eUSD based on collateralization ratio.
  • Implement the burnEUSD() function to burn eUSD and optionally release collateral.
  • Set up interactions between the controller, vault, and eUSD token contracts.
  • Write unit tests to ensure proper minting, burning, and collateral management.

Acceptance Criteria:

  • mintEUSD() only mints eUSD if the user has sufficient collateral.
  • burnEUSD() correctly burns tokens and unlocks collateral (if applicable).
  • Unit tests for minting, burning, and collateral checking pass.
@brolag brolag added the priority Priority task for the project label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority Priority task for the project
Projects
None yet
Development

No branches or pull requests

3 participants