diff --git a/src/Vault.sol b/src/Vault.sol index b9f68e6..b9b869a 100644 --- a/src/Vault.sol +++ b/src/Vault.sol @@ -481,7 +481,7 @@ contract Vault is ERC20, Auth { emit StrategyWithdrawal(strategy, amountToPull); // If we depleted the strategy, remove it from the queue. - if (balanceOfStrategy[strategy] == amountToPull) withdrawalQueue.pop(); + if (balanceOfStrategy[strategy] == 0) withdrawalQueue.pop(); // If we've pulled all we need, exit the loop. if (amountLeftToPull == 0) break;