morpho-org / morpho-optimizers

Core contracts of Morpho V1 Optimizers.
https://app.morpho.org
GNU Affero General Public License v3.0
137 stars 22 forks source link

Fix pausing and deprecation #1642

Closed MerlinEgalite closed 1 year ago

MerlinEgalite commented 1 year ago

Pull Request

Issue(s) fixed

This pull request fixes:

MerlinEgalite commented 1 year ago

CI is failing because the owner of the proxy admin is not the DAO anymore but SafeOwner with the delay

StErMi commented 1 year ago

emit IsBorrowPausedSet(_poolToken, _isPaused); should be emitted only if the flag is changed. now it's always emitted even if it has not changed because the market is deprecated

StErMi commented 1 year ago

One last thing to note, I don't know the current state of morpho flags for all the market, but be sure that they are compliant with the new management of deprecate/borrow pause flags before deploying