0g-chain/x/cdp/spec
Kevin Davis ae4aee46ff
Use sdk.Coin in cdp module (#466)
* Use sdk.Coin in cdp module
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: John Maheswaran <john@noreply>
2020-04-27 10:40:34 -04:00
..
01_concepts.md Use sdk.Coin in cdp module (#466) 2020-04-27 10:40:34 -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 Use sdk.Coin in cdp module (#466) 2020-04-27 10:40:34 -04:00
05_events.md Add CDP Spec (#328) 2020-01-23 14:09:36 -05: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.