Skip to content

Commit

Permalink
Update KaliCurve.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
audsssy committed Dec 8, 2023
1 parent 7b6d9df commit e704814
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/KaliCurve.sol
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ contract KaliCurve is Storage {

// Validate mint conditions.
uint256 burnPrice = this.getPrice(false, curveId);
if (donation != this.getPrice(true, curveId) || donation < burnPrice) revert InvalidAmount();
if (donation != this.getPrice(true, curveId) || donation != msg.value) {
revert InvalidAmount();
}
if (msg.sender == owner) revert NotAuthorized();

// Confirm ImpactDAO exists.
Expand Down

0 comments on commit e704814

Please sign in to comment.