Skip to content

Commit 7ef4c27

Browse files
committed
docs: adapt comment for zero feeds
1 parent efaf59d commit 7ef4c27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ChainlinkOracle.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ contract ChainlinkOracle is IOracle {
4747
QUOTE_FEED_2 = quoteFeed2;
4848
// Let pB1 and pB2 be the base prices, and pQ1 and pQ2 the quote prices (price taking into account the
4949
// decimals of both tokens), in a common currency.
50+
// We tackle the most general case in the remainder of this comment, where we assume that no feed is the address
51+
// zero. Similar explanations would hold in the case where some of the feeds are the address zero.
5052
// Let dB1, dB2, dB3, and dQ1, dQ2, dQ3 be the decimals of the tokens involved.
5153
// For example, pB1 is the number of 1e(dB2) of the second base asset that can be obtained from 1e(dB1) of
5254
// the first base asset.

0 commit comments

Comments
 (0)