Crowdsale with a limit for total contributions.
function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view
Extend parent behavior requiring purchase to respect the funding cap.
beneficiary- Token purchaser
weiAmount- Amount of wei contributed
function cap() public view returns (uint256)
- the cap of the crowdsale.
function capReached() public view returns (bool)
Checks whether the cap has been reached.
- Whether the cap was reached
function (uint256 cap) internal
Constructor, takes maximum amount of wei accepted in the crowdsale.
cap- Max amount of wei to be contributed