Skip to content

Commit

Permalink
docs: minor improvement
Browse files Browse the repository at this point in the history
Signed-off-by: MathisGD <[email protected]>
  • Loading branch information
MathisGD authored Feb 28, 2024
1 parent 3e65407 commit 01dd291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/morpho-chainlink/MorphoChainlinkOracleV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ contract MorphoChainlinkOracleV2 is IMorphoChainlinkOracleV2 {
// = 1e36 * (pB1 * 1e(-dB1) * pB2) / (pQ1 * 1e(-dQ1) * pQ2)

// Let fpB1, fpB2, fpQ1, fpQ2 be the feed precision of the respective prices pB1, pB2, pQ1, pQ2.
// Chainlink-compliant feeds return pB1 * 1e(fpB1), pB2 * 1e(fpB2), pQ1 * 1e(fpQ1) and pQ2 * 1e(fpQ2).
// Feeds return pB1 * 1e(fpB1), pB2 * 1e(fpB2), pQ1 * 1e(fpQ1) and pQ2 * 1e(fpQ2).

// Based on the implementation of `price()` below, the value of `SCALE_FACTOR` should thus satisfy:
// (pB1 * 1e(fpB1)) * (pB2 * 1e(fpB2)) * SCALE_FACTOR / ((pQ1 * 1e(fpQ1)) * (pQ2 * 1e(fpQ2)))
Expand Down

0 comments on commit 01dd291

Please sign in to comment.