Skip to content

Instantly share code, notes, and snippets.

0xEa8eEFB0b08c56787aAAaC9bA08C79e507b07CE9
pragma solidity ^0.4.13;
/* taking ideas from FirstBlood token */
contract SafeMath {
function safeAdd(uint256 x, uint256 y) internal returns(uint256) {
uint256 z = x + y;
assert((z >= x) && (z >= y));
return z;
0xEc683ab19Aa07ce3022f91759D5889AB9Ac40Dce