Skip to content

Commit

Permalink
Use msg.sender since it's checked to save 1 warm SLOAD
Browse files Browse the repository at this point in the history
  • Loading branch information
kphed committed Nov 2, 2023
1 parent e783150 commit 5390557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RewardsStore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ contract RewardsStore {

amount = rewardToken.balanceOf(address(this));

rewardToken.safeTransfer(flywheelRewards, amount);
rewardToken.safeTransfer(msg.sender, amount);
}
}

0 comments on commit 5390557

Please sign in to comment.