Skip to content

Commit

Permalink
move up minContribution earlier since no refunds anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
0xble committed Dec 4, 2023
1 parent 2328635 commit 4e7257d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/authorities/SellPartyCardsAuthority.sol
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,11 @@ contract SellPartyCardsAuthority {
revert SaleInactiveError();
}

// Check that the contribution amount is at or above the minimum.
if (contribution < minContribution) {
revert OutOfBoundsContributionsError(contribution, minContribution);
}

// Check that the contribution amount is at or below the maximum.
uint96 maxContribution = state.maxContribution;
if (contribution > maxContribution) {
Expand All @@ -563,11 +568,6 @@ contract SellPartyCardsAuthority {
}
}

// Check that the contribution amount is at or above the minimum.
if (contribution < minContribution) {
revert OutOfBoundsContributionsError(contribution, minContribution);
}

// Subtract split from contribution amount if applicable.
address payable fundingSplitRecipient = state.fundingSplitRecipient;
uint16 fundingSplitBps = state.fundingSplitBps;
Expand Down

0 comments on commit 4e7257d

Please sign in to comment.