Created
May 17, 2020 05:57
-
-
Save artiya4u/e77ee927e0c9998199bcd831d15c286c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.21 <0.7.0; | |
import "@openzeppelin/contracts/crowdsale/validation/CappedCrowdsale.sol"; | |
import "@openzeppelin/contracts/crowdsale/distribution/RefundableCrowdsale.sol"; | |
import "@openzeppelin/contracts/crowdsale/emission/MintedCrowdsale.sol"; | |
contract BNK48CoinCrowdSale is CappedCrowdsale, RefundableCrowdsale, MintedCrowdsale | |
{ | |
constructor(uint256 _openingTime, uint256 _closingTime, uint256 _rate, address payable _wallet, uint256 _cap, IERC20 _token, uint256 _goal) public | |
Crowdsale(_rate, _wallet, _token) | |
CappedCrowdsale(_cap) | |
TimedCrowdsale(_openingTime, _closingTime) | |
RefundableCrowdsale(_goal) | |
{ | |
require(_goal <= _cap); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment