Skip to content

Work on a 4626 vault for MAHA that takes USDC as Collateral#70

Draft
obchain wants to merge 6 commits intomahaxyz:masterfrom
obchain:maha/vault-usdc
Draft

Work on a 4626 vault for MAHA that takes USDC as Collateral#70
obchain wants to merge 6 commits intomahaxyz:masterfrom
obchain:maha/vault-usdc

Conversation

@obchain
Copy link
Copy Markdown
Contributor

@obchain obchain commented Dec 17, 2024

This PR introduces the initial implementation of an ERC-4626 vault that accepts USDC as collateral and stakes it to mint sZAI. The vault utilizes the following flow: USDC → USDe → sUSDe → sZAI via the zapContract. The shares are denominated in ZAI/USD terms, and the asset value is designed to grow over time as more yield accumulates into sZAI.

Progress:

Deposit and Mint functionality have been implemented successfully.
Additional vault functions like withdraw and burn are left empty for now, pending further clarity on specific requirements and implementation details.

Next Steps:

Define and implement the withdraw and burn logic, ensuring sZAI is returned to users for manual withdrawal handling.
Finalize share calculation mechanisms and additional edge cases.

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.

1 participant