I am currently tryingIs it safe to implementassume that chainlink oracles have an upper bound on the price feed, eg it fits into uint96
, or perhaps a smart contract. Ismaller or larger number? It would likebe great to make some assumptions onknow the dataabsolute largest number that chainlink provides through itsa chainlink oracle price feed could provide, and potential escaping mechanisms in case this price is exceeded.
- Is it safe to assume that the denomination of each price does not change? Eg the number of decimals changes. If not, then we could simply "hard code" the number of decimals that the oracle so provides, otherwise we would have to implement a "gas costly" algorithm for checking if the number of decimals has changed.
- Is it safe to assume that chainlink oracles have an upper bound on the price feed, eg it fits into
uint96
, or perhaps a smaller or larger number? It would be great to know the absolute largest number that a chainlink oracle price feed could provide, and potential escaping mechanisms in case this price is exceeded.
Thanks a lot for helping!