Skip to content

Commit

Permalink
🐛 Small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Oct 6, 2021
1 parent c477c8a commit 0bbef1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0bbef1a

Please sign in to comment.