Skip to content

Instantly share code, notes, and snippets.

View cybercapitalinvest's full-sized avatar

cybercapitalinvest

View GitHub Profile
@cybercapitalinvest
cybercapitalinvest / gist:7c862668e6f65fb711d9d4e3c1ac1a4f
Created September 2, 2018 17:14
smart contract to buy CCI tokens on presale
pragma solidity ^0.4.13;
import "./oraclizeAPI.sol";
/**
* @title SafeMath
* Math operations with safety checks
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
pragma solidity ^0.4.13;
/**
* @title SafeMath
* Math operations with safety checks
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);