24 lines
693 B
Solidity
24 lines
693 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "zos-lib/contracts/Initializable.sol";
|
|
|
|
import "./RefundableCrowdsale.sol";
|
|
import "./PostDeliveryCrowdsale.sol";
|
|
|
|
/**
|
|
* @title RefundablePostDeliveryCrowdsale
|
|
* @dev Extension of RefundableCrowdsale contract that only delivers the tokens
|
|
* once the crowdsale has closed and the goal met, preventing refunds to be issued
|
|
* to token holders.
|
|
*/
|
|
contract RefundablePostDeliveryCrowdsale is Initializable, RefundableCrowdsale, PostDeliveryCrowdsale {
|
|
function withdrawTokens(address beneficiary) public {
|
|
require(finalized());
|
|
require(goalReached());
|
|
|
|
super.withdrawTokens(beneficiary);
|
|
}
|
|
|
|
uint256[50] private ______gap;
|
|
}
|