Replies: 4 comments
Confirming the issueWrite
If Possible solutionsI think that there are 3 possible ways to go further on this issue:
|
|
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 |
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 |
|
I'd be in favor of option 2 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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)
All reactions