ccip
ccip copied to clipboard
Use decimals to normalize aggregator prices
Motivation
Aggregators may returns prices with various decimal settings, not always 18. We need to normalize returned results to wei.
Solution
Use decimals call to the aggregator to know its format and perform conversion if needed (i.e. if decimals not already 18).