morpho-optimizers
morpho-optimizers copied to clipboard
Core contracts of Morpho V1 Optimizers.
In Compound it is actually possible to borrow the reserves, in which case utilization > 100%. The computation of the p2p rate of the Compound Lens reverts if utilization >...
When the Lens computes the virtual rate that you would get from entering a position, the p2p amount is not updated. This leads to a rare case where there is...
Trying this quickly, I have failing tests. See an example in #1320.
The delta can be greater than the p2pAmount, if the rates are natively interted (stable borrow, flashloan). We need to make sure that it does not break anything.