Skip to content

Commit

Permalink
📝 Comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Oct 6, 2021
1 parent 5fdfad2 commit c477c8a
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 @@ -371,7 +371,7 @@ contract Vault is ERC20, Auth {
uint256 balanceThisHarvest = strategy.balanceOfUnderlying(address(this));

// Increase/decrease totalStrategyHoldings based on the computed profit/loss.
// We cannot wrap the balance delta computation in parenthesis as it would underflow if the strategy registers a loss.
// We cannot wrap the subtraction in parenthesis as it would underflow if the strategy had a loss.
totalStrategyHoldings = totalStrategyHoldings + balanceThisHarvest - balanceLastHarvest;

// Update our stored balance for the strategy.
Expand Down

0 comments on commit c477c8a

Please sign in to comment.