Skip to content

Commit

Permalink
T
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Dec 17, 2023
1 parent 7fda201 commit 47a7f66
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/modules/SuperMinterV1_1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1197,14 +1197,14 @@ contract SuperMinterV1_1 is ISuperMinterV1_1, EIP712 {
f.subTotal = unitPrice * uint256(quantity);

// Set the rewards depending on the `unitPrice`.
if (unitPrice >= c.thresholdPrice) {
f.artistReward = c.thresholdArtistReward * uint256(quantity);
f.affiliateReward = c.thresholdAffiliateReward * uint256(quantity);
f.platformReward = c.thresholdPlatformReward * uint256(quantity);
} else {
if (unitPrice <= c.thresholdPrice) {
f.artistReward = c.artistReward * uint256(quantity);
f.affiliateReward = c.affiliateReward * uint256(quantity);
f.platformReward = c.platformReward * uint256(quantity);
} else {
f.artistReward = c.thresholdArtistReward * uint256(quantity);
f.affiliateReward = c.thresholdAffiliateReward * uint256(quantity);
f.platformReward = c.thresholdPlatformReward * uint256(quantity);
}

// Sum the total flat fees for mints, and the transaction flat fee.
Expand Down

0 comments on commit 47a7f66

Please sign in to comment.