Metacenter

risk-feed-trait

The common read interface implemented by pox5-reader (onchain) and risk-feed (mirrored).

(define-trait risk-feed-trait (
    (get-coverage-summary () (response {
        period: uint,
        period-kind: (string-ascii 8),
        pool-sats: uint,
        obligation-sats: uint,
        coverage-bps: (optional uint),
        headroom-bps: (optional uint),
        updated-at: uint,
        provenance: (string-ascii 12),
    } uint))
))
FieldMeaning
period, period-kindA reward cycle ("cycle", pox5-reader) or a distribution interval ("interval", risk-feed)
pool-sats, obligation-satssats accrued / owed to bonds over the period
coverage-bpspool ÷ obligation × 10000; none when there are no bonds
headroom-bps(1 − obligation ÷ pool) × 10000; none when there are no bonds
updated-atBurn block height at which the figures were read or posted
provenance"onchain" or "mirrored"
Edit on GitHub