mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 08:45:19 +00:00
ba73f69688
* add test for exact collateral ratio; fix bug that allows cdps created at the limit to be liquidated by a keeper; update spec * touch up spec to be more clear * adjust test name to better reflect what we are testing |
||
---|---|---|
.. | ||
01_concepts.md | ||
02_state.md | ||
03_messages.md | ||
04_params.md | ||
05_events.md | ||
06_begin_block.md | ||
README.md |
cdp
Table of Contents
Overview
The x/cdp
module stores and manages Collateralized Debt Positions (or CDPs).
A CDP enables the creation of a stable asset pegged to an external price (usually US Dollar) by collateralization with another asset. Collateral is locked in a CDP and new stable asset can be minted up to some fraction of the value of the collateral. To unlock the collateral, the debt must be repaid by returning some stable asset to the CDP at which point it will be burned and the collateral unlocked.
Pegged assets remain fully collateralized by the value locked in CDPs. In the event of price changes, this collateral can be seized and sold off in auctions by the system to reclaim and reduce the supply of stable assets.