Skip to content

Instantly share code, notes, and snippets.

View tokenstars's full-sized avatar

TokenStars tokenstars

View GitHub Profile
pragma solidity ^0.4.18;
import 'soltsice/contracts/BotManageable.sol';
import 'zeppelin-solidity/contracts/math/SafeMath.sol';
contract ERC20Basic {
function balanceOf(address who) public view returns (uint256);
}
contract VotingHub is BotManageable {
@tokenstars
tokenstars / AceToken.sol
Last active March 13, 2018 21:12
ACE Token is a first token of TokenStars platform
pragma solidity ^0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);