Skip to main content

Parameters

The cdp module contains the following parameters:

KeyTypeExampleDescription
CollateralParamsarray (CollateralParam)[{see below}]array of params for each enabled collateral type
DebtParamsDebtParam\{see below}array of params for each enabled pegged asset
GlobalDebtLimitcoin\{"denom":"usdx","amount":"1000"}maximum pegged assets that can be minted across the whole system
SavingsDistributionFrequencystring (int)"84600"number of seconds between distribution of the savings rate
GlobalDebtLimitcoin\{"denom":"usdx","amount":"1000"}maximum pegged assets that can be minted across the whole system
DebtAuctionThresholdstring (int)"100000000000"amount of system debt before a debt auction is triggered
SurplusAuctionThresholdstring (int)"100000000000"amount of system surplus before a surplus auction is triggered
DebtAuctionLotstring (int)"10000000000"amount of debt that each debt auction will attempt to recoup
SurplusAuctionLotstring (int)"10000000000"amount of surplus that will be sold at each surplus auction

Each CollateralParam has the following parameters:

KeyTypeExampleDescription
Denomstring"bnb"collateral coin denom
LiquidationRatiostring (dec)"1.500000000000000000"the ratio under which a cdp with this collateral type will be liquidated
DebtLimitcoin{"denom":"bnb","amount":"1000000000000"}maximum pegged asset that can be minted backed by this collateral type
StabilityFeestring (dec)"1.000000001547126"per second fee
Prefixnumber (byte)"34"identifier used in store keys - must be unique across collateral types
SpotMarketIDstring"bnb:usd"price feed identifier for the spot price of this collateral type
LiquidationMarketIDstring"bnb:usd:30"price feed identifier for the liquidation price of this collateral type
ConversionFactorstring (int)"6"10^_ multiplier for external (BTC1.50) to internal (150000000) representation

DebtParam has the following parameters:

KeyTypeExampleDescription
Denomstring"usdx"pegged asset coin denom
ReferenceAssetstring"USD"asset this asset is pegged to, informational purposes only
ConversionFactorstring (int)"6"10^_ multiplier to go from external amount (say $1.50) to internal representation of that amount (1500000)
DebtFloorstring (int)"10000000"minimum amount of debt that a CDP can contain
SavingsRatestring (dec)"0.95"the percentage of accumulated fees that go towards the savings rate