Skip to content

Instantly share code, notes, and snippets.

@netkiller
Last active July 2, 2018 04:08
Show Gist options
  • Save netkiller/d92a8a118e0b7405e449032fd309c8ac to your computer and use it in GitHub Desktop.
Save netkiller/d92a8a118e0b7405e449032fd309c8ac to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.24;
/******************************************/
/* Netkiller Crowdsale Contract */
/******************************************/
/* Author netkiller <[email protected]> */
/* Home http://www.netkiller.cn */
/* Version 2018-06-07 - Solc ver: 0.4.24 */
/******************************************/
interface token {
function transfer(address receiver, uint amount) external;
}
contract Netkiller {
token public tokenContract;
constructor(address addressOfToken) public {
tokenContract = token(addressOfToken);
}
function transfer(address _to, uint256 _value) payable public{
tokenContract.transfer(_to, _value);
}
function transferOne(address _to, uint256 _value) public returns (bool success) {
tokenContract.transfer(_to, _value);
return true;
}
function transferBatch(address[] _to, uint256 _value) public returns (bool success) {
for (uint i=0; i<_to.length; i++) {
tokenContract.transfer(_to[i], _value);
}
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment