ccip icon indicating copy to clipboard operation
ccip copied to clipboard

Use decimals to normalize aggregator prices

Open jarnaud opened this issue 1 year ago • 0 comments

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).

jarnaud avatar May 15 '24 10:05 jarnaud