Skip to content

Instantly share code, notes, and snippets.

@ETGs
ETGs / ETG
Created October 19, 2017 02:20
Ethereum Gold
pragma solidity ^ 0.4 .9;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns(uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns(uint256) {
uint256 c = a / b;