RefundableCrowdsale
contract RefundableCrowdsale
Extension of Crowdsale contract that adds a funding goal, and the possibility of users getting a refund if goal is not met. Uses a RefundVault as the crowdsale's vault.
Reference
Functions
RefundableCrowdsale
function RefundableCrowdsale(uint256 _goal) public
Constructor, creates RefundVault.
- Parameters:
_goal
- Funding goal
_forwardFunds
function _forwardFunds() internal
Overrides Crowdsale fund forwarding, sending funds to vault.
claimRefund
function claimRefund() public
Investors can claim refunds here if crowdsale is unsuccessful.
finalization
function finalization() internal
Vault finalization task, called when owner calls finalize().
goalReached
function goalReached() public view returns (bool)
Checks whether funding goal was reached.
- Returns:
- Whether funding goal was reached