From 584365bbd805b43d99019140500fbd37e3d60b59 Mon Sep 17 00:00:00 2001 From: Quentin Garchery Date: Wed, 27 Dec 2023 08:57:32 +0100 Subject: [PATCH 1/2] refactor: clarify comment about removed markets --- src/interfaces/IMetaMorpho.sol | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/interfaces/IMetaMorpho.sol b/src/interfaces/IMetaMorpho.sol index c9e89285..92b86bda 100644 --- a/src/interfaces/IMetaMorpho.sol +++ b/src/interfaces/IMetaMorpho.sol @@ -137,9 +137,8 @@ interface IMetaMorphoBase { /// increase the cost of depositing to the vault. function setSupplyQueue(Id[] calldata newSupplyQueue) external; - /// @notice Sets the withdraw queue as a permutation of the previous one, although markets with both zero cap and - /// zero vault's supply can be removed from the permutation. - /// @notice This is the only entry point to disable a market. + /// @notice Sets the withdraw queue as a permutation of the previous one, although some markets can be removed. + /// @notice This is the only entry point to remove a market. /// @notice Removing a market requires the vault to have 0 supply on it, or to have previously submitted a removal /// for this market (with the function `submitMarketRemoval`). /// @notice Warning: Anyone can supply on behalf of the vault so the call to `updateWithdrawQueue` that expects a From 97dfdd29581aa97f1f7b78fb5f282fb312a09d8a Mon Sep 17 00:00:00 2001 From: MathisGD <74971347+MathisGD@users.noreply.github.com> Date: Wed, 27 Dec 2023 23:28:08 +0100 Subject: [PATCH 2/2] docs: minor improvement Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com> --- src/interfaces/IMetaMorpho.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interfaces/IMetaMorpho.sol b/src/interfaces/IMetaMorpho.sol index 92b86bda..7512f7d8 100644 --- a/src/interfaces/IMetaMorpho.sol +++ b/src/interfaces/IMetaMorpho.sol @@ -137,8 +137,7 @@ interface IMetaMorphoBase { /// increase the cost of depositing to the vault. function setSupplyQueue(Id[] calldata newSupplyQueue) external; - /// @notice Sets the withdraw queue as a permutation of the previous one, although some markets can be removed. - /// @notice This is the only entry point to remove a market. + /// @notice Updates the withdraw queue. Some markets can be removed, but no market can be added. /// @notice Removing a market requires the vault to have 0 supply on it, or to have previously submitted a removal /// for this market (with the function `submitMarketRemoval`). /// @notice Warning: Anyone can supply on behalf of the vault so the call to `updateWithdrawQueue` that expects a