Skip to content

Commit

Permalink
Fix isPresalePurchase for milestone based pricing.
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 3, 2017
1 parent 9ba1787 commit 7d4a5ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/MilestonePricing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ contract MilestonePricing is PricingStrategy, Ownable {
return value.times(multiplier) / price;
}

function isPresalePurchase(address purchaser) public constant returns (bool) {
if(preicoAddresses[purchaser] > 0)
return true;
else
return false;
}

function() payable {
throw; // No money on this contract
}
Expand Down

0 comments on commit 7d4a5ab

Please sign in to comment.