0g-chain/x/cdp/spec
Kevin Davis 5336ccc0c0
Add surplus and debt auction lot params (#531)
* wip: add lot size param for surplus and debt auctions

* update tests with new params

* update spec

* address review comments
2020-05-31 09:59:40 -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 surplus and debt auction lot params (#531) 2020-05-31 09:59:40 -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.