Skip to content

Instantly share code, notes, and snippets.

View ivanreif's full-sized avatar

Ivan Reif ivanreif

  • K3 Labs
  • Zürich, Switzerland 🇨🇭
  • X @ivan_reif
View GitHub Profile
// File: SafeMath.sol
pragma solidity >=0.4.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result