Protocol-wide live state, from one block.
"One consistent price snapshot" used to be a claim rather than a fact: the price was read in its own round trip and the dependent calls ran at whatever block came next (MK-013). Both reads are now pinned to blockNumber.
The block price, tcr and isRecoveryMode were all read at.
price
tcr
isRecoveryMode
checkRecoveryMode(price), system TCR < CCR.
checkRecoveryMode(price)
fetchPrice(), BTC/USD, 1e18-scaled.
fetchPrice()
getTCR(price), total collateral ratio, 1e18 fixed point.
getTCR(price)
Protocol-wide live state, from one block.
"One consistent price snapshot" used to be a claim rather than a fact: the price was read in its own round trip and the dependent calls ran at whatever block came next (MK-013). Both reads are now pinned to blockNumber.