0g-chain/x/cdp/spec
2020-06-02 10:49:29 -04:00
..
01_concepts.md [R4R] Add liquidation pricefeed (#524) 2020-05-24 09:42:46 -04:00
02_state.md Use sdk.Coin in cdp module (#466) 2020-04-27 10:40:34 -04:00
03_messages.md Use sdk.Coin in cdp module (#466) 2020-04-27 10:40:34 -04:00
04_begin_block.md [R4R] Basic docs tidying (#534) 2020-05-29 15:53:57 -07:00
05_events.md cleanup cdp events 2020-05-07 17:35:42 -04:00
06_params.md add backticks to params in spec (#538) 2020-06-02 10:49:29 -04:00
README.md [R4R] Basic docs tidying (#534) 2020-05-29 15:53:57 -07:00

cdp

Table of Contents

  1. Concepts
  2. State
  3. Messages
  4. BeginBlock
  5. Events
  6. Parameters

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.