Refundable post delivery crowdsale (#1543)
* Fixed unnecessary dependency of RefundableCrowdsaleImpl on ERC20Mintable. * Added PostDeliveryRefundableCrowdsale. * Renamed to RefundablePostDeliveryCrowdsale. * Added deprecation warning.
This commit is contained in:
committed by
Francisco Giordano
parent
70e616db7c
commit
357fded2b5
@ -1,6 +1,6 @@
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
import "../token/ERC20/ERC20Mintable.sol";
|
||||
import "../token/ERC20/IERC20.sol";
|
||||
import "../crowdsale/distribution/RefundableCrowdsale.sol";
|
||||
|
||||
contract RefundableCrowdsaleImpl is RefundableCrowdsale {
|
||||
@ -9,7 +9,7 @@ contract RefundableCrowdsaleImpl is RefundableCrowdsale {
|
||||
uint256 closingTime,
|
||||
uint256 rate,
|
||||
address wallet,
|
||||
ERC20Mintable token,
|
||||
IERC20 token,
|
||||
uint256 goal
|
||||
)
|
||||
public
|
||||
|
||||
20
contracts/mocks/RefundablePostDeliveryCrowdsaleImpl.sol
Normal file
20
contracts/mocks/RefundablePostDeliveryCrowdsaleImpl.sol
Normal file
@ -0,0 +1,20 @@
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
import "../token/ERC20/IERC20.sol";
|
||||
import "../crowdsale/distribution/RefundablePostDeliveryCrowdsale.sol";
|
||||
|
||||
contract RefundablePostDeliveryCrowdsaleImpl is RefundablePostDeliveryCrowdsale {
|
||||
constructor (
|
||||
uint256 openingTime,
|
||||
uint256 closingTime,
|
||||
uint256 rate,
|
||||
address wallet,
|
||||
IERC20 token,
|
||||
uint256 goal
|
||||
)
|
||||
public
|
||||
Crowdsale(rate, wallet, token)
|
||||
TimedCrowdsale(openingTime, closingTime)
|
||||
RefundableCrowdsale(goal)
|
||||
{}
|
||||
}
|
||||
Reference in New Issue
Block a user