Add SignedMath with math utilities for signed integers (#2686)
* add contract and tests * avoid implicit cast * add test cases * fix test names * modify avarage and add tests * improve signed average formula * fix lint * better average formula * refactor signed average testing * add doc and changelog entry * Update contracts/utils/math/SignedMath.sol Co-authored-by: Francisco Giordano <frangio.1@gmail.com> * remove ceilDiv Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Showing
contracts/mocks/SignedMathMock.sol
0 → 100644
contracts/utils/math/SignedMath.sol
0 → 100644
test/utils/math/SignedMath.test.js
0 → 100644
Please
register
or
sign in
to comment