Snoppy
60697cb09a
Fix typo in `Math.ternary` ( #5026 )
...
Signed-off-by: snoppy <michaleli@foxmail.com>
9 months ago
Lohann Paterno Coutinho Ferreira
4032b42694
Branchless ternary, min and max methods ( #4976 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
9 months ago
Vladislav Volosnikov
dfae50fa5b
Refactor abs without logical branching ( #4497 )
...
Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
1 year ago
github-actions[bot]
3e6c86392c
Merge release-v5.0 branch ( #4665 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eric Lau <ericglau@outlook.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
1 year ago
Hadrien Croubois
00cbf5a236
Update pragma to 0.8.20 ( #4489 )
...
Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: ernestognw <ernestognw@gmail.com>
2 years ago
Ernesto García
7bb5592ad5
Bump minimum pragma version to `0.8.19` ( #4288 )
2 years ago
Francisco Giordano
49c0e4370d
4.8.0
2 years ago
Hadrien Croubois
1f18fea1de
4.8.0-rc.2
2 years ago
Hadrien Croubois
16791134c1
4.8.0-rc.1
2 years ago
Francisco Giordano
5e6fd491f3
4.8.0-rc.0
2 years ago
Daniel Liu
005a35b02a
Optimize Math.max and SignedMath.max ( #3679 )
...
Co-authored-by: Daniel Liu <liudaniel@qq.com>
2 years ago
Francisco Giordano
afb20119b3
Release v4.5
3 years ago
Hadrien Croubois
3eb2d43b06
Move abs(int256) from Math to SafeMath ( #3110 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
rotcivegaf
3458c1e854
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>
3 years ago