Replies: 4 comments
-
Confirming the issueWrite
If Possible solutionsI think that there are 3 possible ways to go further on this issue:
|
Beta Was this translation helpful? Give feedback.
-
I don't get why in solution 3 we have to rewrite the oracle: can't we just assume sample = 1 and re-order multiplications and divisions? But in this case the 512-bit multiplication would be closer to the real-number solution |
Beta Was this translation helpful? Give feedback.
-
If we assume we only compute amounts,
True, but at the same time I'm not sure about the guarantees it gives. I guess it depends on how you split the factors |
Beta Was this translation helpful? Give feedback.
-
I'd be in favor of option 2 |
Beta Was this translation helpful? Give feedback.
-
https://github.com/morpho-labs/morpho-blue-oracles/blob/0007653923d96e2d817f79b4a0e0fec87857e486/src/ChainlinkOracle.sol#L55
Can't this multiplication overflow and revert? We could use uniswap's 512-bit multiplication do circumvent this
Originally posted by @Rubilmax in #1 (comment)
Beta Was this translation helpful? Give feedback.
All reactions