Skip to content

Instantly share code, notes, and snippets.

View rosdec's full-sized avatar

Rosario De Chiara rosdec

View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an