Last updated
Last updated
Author: https://github.com/AragonBlack/fundraising/blob/master/apps/bancor-formula/contracts/utility/SafeMath.sol
The sole modification implemented in the contract involves altering the Solidity version number.
returns the sum of _x and _y, reverts if the calculation overflows
Parameters
Returns
returns the difference of _x minus _y, reverts if the calculation underflows
Parameters
Returns
returns the product of multiplying _x by _y, reverts if the calculation overflows
Parameters
Returns
Integer division of two numbers truncating the quotient, reverts on division by zero.
Parameters
Returns
<none>
uint256
difference
_x
uint256
factor 1
_y
uint256
factor 2
<none>
uint256
product
_x
uint256
dividend
_y
uint256
divisor
<none>
uint256
quotient
_x
uint256
value 1
_y
uint256
value 2
<none>
uint256
sum
_x
uint256
minuend
_y
uint256
subtrahend