Skip to content

Commit

Permalink
docs: adapt comment for zero feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Oct 11, 2023
1 parent efaf59d commit 7ef4c27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ChainlinkOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ contract ChainlinkOracle is IOracle {
QUOTE_FEED_2 = quoteFeed2;
// Let pB1 and pB2 be the base prices, and pQ1 and pQ2 the quote prices (price taking into account the
// decimals of both tokens), in a common currency.
// We tackle the most general case in the remainder of this comment, where we assume that no feed is the address
// zero. Similar explanations would hold in the case where some of the feeds are the address zero.
// Let dB1, dB2, dB3, and dQ1, dQ2, dQ3 be the decimals of the tokens involved.
// For example, pB1 is the number of 1e(dB2) of the second base asset that can be obtained from 1e(dB1) of
// the first base asset.
Expand Down

0 comments on commit 7ef4c27

Please sign in to comment.