Math.average (#1170)

* Added Math.average

* Removed assertion.
This commit is contained in:
Nicolás Venturo
2018-08-13 20:07:18 -03:00
committed by GitHub
parent e493d2a6ba
commit d51e38758e
3 changed files with 33 additions and 0 deletions

View File

@ -12,4 +12,8 @@ contract MathMock {
function min(uint256 _a, uint256 _b) public pure returns (uint256) {
return Math.min(_a, _b);
}
function average(uint256 _a, uint256 _b) public pure returns (uint256) {
return Math.average(_a, _b);
}
}