# Functions
BigIntSortedMiddle returns the middle number after sorting the provided numbers.
CalculateUsdPerUnitGas returns: (sourceGasPrice * usdPerFeeCoin) / 1e18.
ContiguousReqs checks if seqNrs contains all numbers from min to max.
Deviates checks if x1 and x2 deviates based on the provided ppb (parts per billion) ppb is calculated based on the smaller value of the two e.g, if x1 > x2, deviation_parts_per_billion = ((x1 - x2) / x2) * 1e9.
DeviatesOnCurve calculates a deviation threshold on the fly using xNew.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
CurveBasedDeviationPPB is the deviation threshold when writing to ethereum's PriceRegistry and is the trigger for using curve-based deviation logic.