Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
haythemsellami committed Jun 14, 2024
1 parent 199ca17 commit d1329a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FourSixTwoSixAgg.sol
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ contract FourSixTwoSixAgg is IFourSixTwoSixAgg, BalanceForwarder, EVCUtil, ERC46
underlyingBalance -= accruedPerformanceFee;
yield -= accruedPerformanceFee;
}

strategies[_strategy].allocated = uint120(underlyingBalance);
totalAllocated += yield;
} else {
Expand Down Expand Up @@ -646,9 +646,9 @@ contract FourSixTwoSixAgg is IFourSixTwoSixAgg, BalanceForwarder, EVCUtil, ERC46
// `feeAssets` will be rounded down to 0 if `yield * performanceFee < 1e18`.
uint256 feeAssets = Math.mulDiv(_yield, cachedPerformanceFee, 1e18, Math.Rounding.Down);

if(feeAssets > 0) {
if (feeAssets > 0) {
IERC4626(_strategy).withdraw(feeAssets, cachedFeeRecipient, address(this));
}
}

emit AccruePerformanceFee(cachedFeeRecipient, _yield, feeAssets);

Expand Down

0 comments on commit d1329a3

Please sign in to comment.