Skip to content

Instantly share code, notes, and snippets.

@artiya4u
Created May 17, 2020 05:57
Show Gist options
  • Save artiya4u/e77ee927e0c9998199bcd831d15c286c to your computer and use it in GitHub Desktop.
Save artiya4u/e77ee927e0c9998199bcd831d15c286c to your computer and use it in GitHub Desktop.
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