0g-chain/x/cdp/spec
Kevin Davis 1099dfbd7d
CDP revisions (#508)
* address review comments

* add kavadist to modaccount check

* cdp and deposit validation in genesis

* cleanup genesis validation

* add validation test for types

* don't error on augmented cdp loading

* simplify collateral auction logic
2020-05-13 10:19:19 -04:00
..
01_concepts.md CDP revisions (#508) 2020-05-13 10:19:19 -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 CDP revisions (#508) 2020-05-13 10:19:19 -04:00
05_events.md cleanup cdp events 2020-05-07 17:35:42 -04:00
06_params.md Use sdk.Coin in cdp module (#466) 2020-04-27 10:40:34 -04:00
README.md Use sdk.Coin in cdp module (#466) 2020-04-27 10:40:34 -04: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.