Skip to content

Commit

Permalink
refactor: remove removableAt check in _setCap
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisGD committed Jan 2, 2024
1 parent 810d0a2 commit e95d7cc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/MetaMorpho.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e95d7cc

Please sign in to comment.