Protocol-wide live state, one consistent price snapshot.

interface SystemState {
    isRecoveryMode: boolean;
    price: bigint;
    tcr: bigint;
}

Properties

isRecoveryMode: boolean

checkRecoveryMode(price), system TCR < CCR.

price: bigint

fetchPrice(), BTC/USD, 1e18-scaled.

tcr: bigint

getTCR(price), total collateral ratio, 1e18 fixed point.