* Change import path from zos-lib to upgrades in all contracts * Update readme with new naming * Update package and deps names * Change path to initializable in AST of networks.jsons * Migrate manifest version * Use new oz file locations * Rename in ERC20Migrator comments * Update SDK install instructions in README * Update gitignore to use new session file name * trigger CI * Fixes to readme and package version * Use 2.5.0 release of OpenZeppelin SDK
24 lines
708 B
Solidity
24 lines
708 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "@openzeppelin/upgrades/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;
|
|
}
|