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.
function RefundableCrowdsale(uint256 _goal) public
Constructor, creates RefundVault.
_goal- Funding goal
function _forwardFunds() internal
Overrides Crowdsale fund forwarding, sending funds to vault.
function claimRefund() public
Investors can claim refunds here if crowdsale is unsuccessful.
function finalization() internal
Vault finalization task, called when owner calls finalize().
function goalReached() public view returns (bool)
Checks whether funding goal was reached.
- Whether funding goal was reached