Skip to content

Instantly share code, notes, and snippets.

@artiya4u
Last active March 3, 2018 08:44
Show Gist options
  • Save artiya4u/484e68078ef04eaaaa01ac59a88b9c09 to your computer and use it in GitHub Desktop.
Save artiya4u/484e68078ef04eaaaa01ac59a88b9c09 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.18;
import "zeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol";
import "zeppelin-solidity/contracts/crowdsale/distribution/RefundableCrowdsale.sol";
import "zeppelin-solidity/contracts/crowdsale/emission/MintedCrowdsale.sol";
contract BNK48CoinCrowdSale is CappedCrowdsale, RefundableCrowdsale, MintedCrowdsale {
function BNK48CoinCrowdSale(uint256 _openingTime, uint256 _closingTime, uint256 _rate,
address _wallet, uint256 _cap, MintableToken _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