System data

Use the mcd:systemData service to look up system-wide parameters. In the code, this is called SystemDataService.
const service = maker.service('mcd:systemData');

Instance methods

getAnnualBaseRate()

Returns the base rate applied to all collateral types, in addition to their individual risk premiums.
const base = await service.getAnnualBaseRate();

getSystemWideDebtCeiling()

Returns the debt ceiling for the entire system.
const line = await service.getSystemWideDebtCeiling();

isGlobalSettlementInvoked()

Returns a boolean that is true if emergency shutdown has been triggered.
const dead = await service.isGlobalSettlementInvoked();