Collateral types
const service = maker.service('mcd:cdpType');Properties
cdpTypes
service.cdpTypes.forEach(type => console.log(type.ilk));
// ETH-A
// BAT-A
// USDC-AInstance methods
getCdpType()
// this will error if more than one type is defined for ETH
const type = service.getCdpType(ETH);
// disambiguate using the ilk name string:
const ethA = service.getCdpType(null, 'ETH-A');Collateral type instances
Properties
ilk
totalCollateral
totalDebt
debtCeiling
liquidationRatio
price
liquidationPenalty
annualStabilityFee
Caching
Last updated