Skip to content

Commit

Permalink
Reduced mload in PrizeSplit
Browse files Browse the repository at this point in the history
  • Loading branch information
asselstine committed Oct 14, 2021
1 parent 293e224 commit 36ca245
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/prize-strategy/PrizeSplit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ abstract contract PrizeSplit is IPrizeSplit, Ownable {
uint256 prizeSplitsLength = _prizeSplits.length;

for (uint8 index = 0; index < prizeSplitsLength; index++) {
PrizeSplitConfig memory split = _prizeSplits[index];
_tempTotalPercentage = _tempTotalPercentage + split.percentage;
_tempTotalPercentage = _tempTotalPercentage + _prizeSplits[index].percentage;
}

return _tempTotalPercentage;
Expand Down

0 comments on commit 36ca245

Please sign in to comment.