From e95d7cc05eb27a4208fa1d7b29ab3acb51e642d1 Mon Sep 17 00:00:00 2001 From: MathisGD Date: Tue, 2 Jan 2024 07:57:54 +0100 Subject: [PATCH] refactor: remove removableAt check in _setCap --- src/MetaMorpho.sol | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/MetaMorpho.sol b/src/MetaMorpho.sol index 25ef16f5..45a959af 100644 --- a/src/MetaMorpho.sol +++ b/src/MetaMorpho.sol @@ -738,8 +738,6 @@ contract MetaMorpho is ERC4626, ERC20Permit, Ownable2Step, Multicall, IMetaMorph MarketConfig storage marketConfig = config[id]; if (supplyCap > 0) { - if (config[id].removableAt != 0) revert ErrorsLib.PendingRemoval(); - if (!marketConfig.enabled) { withdrawQueue.push(id);