Skip to content

Commit

Permalink
fix: gas optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-ux committed Jan 24, 2025
1 parent 4ddbbb2 commit fa1af7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/contracts/strategies/CurvePoolBooster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,12 @@ contract CurvePoolBooster is Initializable, Strategizable {
// Transfer the fee to the feeCollector
IERC20(rewardToken).transfer(feeCollector, feeAmount);
emit FeeCollected(feeCollector, feeAmount);

return IERC20(rewardToken).balanceOf(address(this));
}

// Return remaining balance
return IERC20(rewardToken).balanceOf(address(this));
return balance;
}

////////////////////////////////////////////////////
Expand Down

0 comments on commit fa1af7f

Please sign in to comment.