Function: _chainlinkPrice(IAggregatorV3Interface oracle, uint256 scalar, bool scaleDown, uint256 stalenessThreshold, OrigamiMath.Rounding roundingMode)
Gets latest Chainlink price.
Inputs
oracleControl: Full.
Constraints: None.
Impact: The oracle to use.
scalarControl: Full.
Constraints: None.
Impact: Amount to scale price by.
scaleDownControl: Full.
Constraints: None.
Impact: Scale direction.
stalenessThresholdControl: Full.
Constraints: None.
Impact: Freshness threshold of the oracle price.
roundingModeControl: Full.
Constraints: None.
Impact: Rounding direction.
Branches and code coverage
Intended branches
Scales and rounds in specified directions.
Negative behavior
Verify that the response is fresh enough.