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');
Returns the base rate applied to all collateral types, in addition to their individual risk premiums.
const base = await service.getAnnualBaseRate();
Returns the debt ceiling for the entire system.
const line = await service.getSystemWideDebtCeiling();
Returns a boolean that is true if emergency shutdown has been triggered.
const dead = await service.isGlobalSettlementInvoked();
Last modified 3yr ago