Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pool 1803 prizedistributorsolclaim remove #234

Merged
merged 3 commits into from
Oct 14, 2021

Conversation

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same changes as in #228

// helpfully short-circuit, in case the user screwed something up.
require(payout > oldPayout, "PrizeDistributor/zero-payout");

unchecked {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change than in #225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants