Skip to content

Instantly share code, notes, and snippets.

0xc34663aD1Bdf344DF00c783fA6578b4dBCa2DcDB
0x637F92b37D2f45aa7B8265400B06CBd57BF1260c
0x53c915C618FDEFafb3b9C94215B9eFD53E3BAb04
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);
<!-- Hotjar Tracking Code for https://ganttpro.com -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:673025,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
0xEc057A6698DA53874d5D6E871eCa2AF43CF6aF6d
https://gist.github.com/Nedudi/70a898c8d7f6205bc241ef3606ce890f
0xEc057A6698DA53874d5D6E871eCa2AF43CF6aF6d
0xb200e766626C6B6Dd5C9b95BEe41bf76b3586b34
pragma solidity ^0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**