Skip to content

Instantly share code, notes, and snippets.

View frostiq's full-sized avatar

Alex Bazhanau frostiq

View GitHub Profile
@frostiq
frostiq / IouRoots.sol
Created July 27, 2017 08:47 — forked from anonymous/ballot.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.13+commit.fb4cb1a.js&optimize=undefined&gist=
pragma solidity ^0.4.13;
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) {