From 0bbef1ab0db3b943e599cd1b0ee4c41b4d9285bf Mon Sep 17 00:00:00 2001 From: t11s Date: Tue, 5 Oct 2021 20:50:59 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Small=20bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Vault.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;