We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d96b8e commit efaf59dCopy full SHA for efaf59d
src/ChainlinkOracle.sol
@@ -58,7 +58,7 @@ contract ChainlinkOracle is IOracle {
58
// Yet `price()` returns (pB1*1e(fpB1) * pB2*1e(fpB2) * SCALE_FACTOR) / (pQ1*1e(fpQ1) * pQ2*1e(fpQ2))
59
// So 1e36 * pB1 * pB2 * 1e(-dB1) / (pQ1 * pQ2 * 1e(-dQ1)) =
60
// (pB1*1e(fpB1) * pB2*1e(fpB2) * SCALE_FACTOR) / (pQ1*1e(fpQ1) * pQ2*1e(fpQ2))
61
- // So SCALE_FACTOR = 1e36 / 1e(dB1) * 1e(dQ1) / 1e(fpB1) / 1e(fpB2) * 1e(fpQ1) * 1e(fpQ2)
+ // So SCALE_FACTOR = 1e36 * 1e(-dB1) * 1e(dQ1) * 1e(-fpB1) * 1e(-fpB2) * 1e(fpQ1) * 1e(fpQ2)
62
// = 1e(36 + dQ1 + fpQ1 + fpQ2 - dB1 - fpB1 - fpB2)
63
SCALE_FACTOR = 10
64
** (
0 commit comments