High Level Architecture
Understanding the inner workings of Enclave Dollar
Last updated
Understanding the inner workings of Enclave Dollar
Last updated
Enclave Dollars (EUSD) is designed with a robust architecture to provide users with a seamless and secure experience while earning the best yields on their stablecoins. The following components work together to form the backbone of Enclave Dollars:
The EUSD token is a modified ERC20 smart contract deployed across supported networks. It represents a user's share in the Enclave Fund Pool, allowing for easy and secure transactions of stablecoins.
The Enclave Fund Pool is a treasury contract responsible for maintaining cash reserves and holding positions across various DeFi sources. It acts as the central repository for user deposits and is managed to optimize yield generation while ensuring liquidity and security.
Yield source contracts serve as an abstracted middleware, enabling the Enclave Fund Pool to interface with different DeFi protocols in a standardized manner. These contracts allow the Fund Pool to access a wide range of yield-generating opportunities across multiple blockchain networks, ensuring users benefit from the best available yields.
The Rebalancer Service is responsible for managing the portfolio of assets within the Enclave Fund Pool across networks. It executes AI powered automated portfolio management strategies to ensure safe yield maximization. This service continuously monitors and adjusts the asset allocation to optimize returns while maintaining appropriate risk thresholds.
The Pool Reserve Oracle is tasked with syncing the state of fund pool reserves across networks. It ensures that the Enclave Fund Pool's reserves are accurately reflected across all supported networks, providing transparency and consistency in the management of user assets.
The Withdrawal Queue manages user withdrawal requests in a safe and secure manner. It ensures that withdrawals are processed efficiently while maintaining the stability and integrity of the Enclave Fund Pool. The queue system helps manage liquidity and prevents any disruptions that could arise from sudden large withdrawals.
The Withdrawal Service executes withdrawal requests present in the queue and processes transfers of USDC to external wallets thereby servicing and closing pending withdrawal requests.