Skip to content

Commit

Permalink
fix: gas optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyonline committed Mar 9, 2024
1 parent a07939e commit 08452cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/strategies/crvUSD/SiloLlamaStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ contract SiloLlamaStrategy is AuctionSwapper, BaseStrategy {
address(this)
);

for (uint256 i = 0; i < rewardTokens.length; i++) {
uint256 rewardsTokensLength = rewardTokens.length;
for (uint256 i = 0; i < rewardsTokensLength; i++) {
address rewardToken = rewardTokens[i];
uint256 rewardBalance = ERC20(rewardToken).balanceOf(address(this));
if (rewardBalance > 0) {
Expand Down

0 comments on commit 08452cf

Please sign in to comment.