Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/docs/natspec-issues' into docs/n…
Browse files Browse the repository at this point in the history
…atspec-issues
  • Loading branch information
MathisGD committed Feb 28, 2024
2 parents efcda54 + 01dd291 commit ed80736
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 @@ -123,7 +123,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 ed80736

Please sign in to comment.