Closed Jean-Grimal closed 1 month ago
I agree that the documentation could be improved. It should be the market oracle most of the time, but it's there to enable the use case of OEV. There is no question of being more precise though (not sure what that means)
Good catch, I'll add it to the Readme. We could also add the oracle interface to the repo (right now we import it from morpho blue) to be clearer
The main use-case for this parameter is to use an OEV oracle such as Oval or API3
Done in #65
https://github.com/morpho-org/pre-liquidation/blob/01c6faf81237a391bae4a9305cf4552719820d57/src/interfaces/IPreLiquidation.sol#L12
I’d add more documentation on what the preLiquidationOracle is supposed to be. From what I understand, it can be a different oracle from the market’s one, to be able to price the collateral asset in a different (maybe more precise way?) But it also could be the market’s oracle right ?