isValid
- boolean that signals whether the currently stored value is valid (greater than zero) or notmedianPrice
- the current price feedgetResultWithValidity() external view returns (bytes32, bool)
- returns result
and isValid
read() external view returns (uint256)
- getter that only returns the result
updateResult(newResult: bytes32)
- set a new result
restartValue()
- set isValid
to false
medianPrice
by calling updateResult
. Anyone can read
the medianPrice
or read both the medianPrice
and whether it isValid
by calling read
orgetResultWithValidity
.