gigaCDP
Last updated
Last updated
gigaCDP is a central module of the ENJ MS, responsible for aggregating and managing user deposits across multiple blockchain networks. It plays a crucial role in determining the amount of gigaAssets to be minted based on the collateral provided by users. This module functions as a DAO-managed portfolio of assets and liabilities, tracking the status of all collateral assets and synthetic obligations while maintaining Loan-to-Value (LTV) ratios to ensure protocol stability.
gigaCDP stores aggregated records of all user deposits within the protocol, regardless of the blockchain network in which they were made. These deposits are treated as collateral and are used to open CDPs (collateralized-debt positions).
The module stores predefined average LTV ratios for tokens supported by the protocol. gigaCDP calculates the maximum amount of gigaAssets that can be minted based on the LTV, ensuring the minted supply is always backed by sufficient collateral.
gigaCDP also facilitates the distribution of rewards earned from Target Protocols. The rewards are auctioned for gigaAssets before being distributed to External users. The gigaAssets obtained from these auctions are then used to reward External users based on their deposits, incentivizing active participation in liquidity provisioning within the protocol.
When External users want to claim their assets, they submit withdrawal requests to gigaCDP, which verifies collateral availability and generates vouchers for approved withdrawals. These vouchers specify the amount of tokens that can be withdrawn on the supported blockchain. External users can use them to redeem their tokens.
gigaCDP Main Operations:
Receive Vault Balances: gigaCDP receives and stores information from Vaults about External users positions, including accounts, assets, and amounts.
Fetch Claim Voucher: External users fetch claim vouchers to redeem their tokens.
Claim gigaAsset Rewards: Exteranal users claim rewards earned from Target Protocols.