ERC4626 inflation attack mitigation (#3979)

Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-02-17 10:08:31 +01:00
committed by GitHub
parent d5d9d4bd3d
commit d64d7aa5d1
18 changed files with 628 additions and 488 deletions

View File

@ -177,7 +177,7 @@ contract MathTest is Test {
}
// Helpers
function _asRounding(uint8 r) private returns (Math.Rounding) {
function _asRounding(uint8 r) private pure returns (Math.Rounding) {
vm.assume(r < uint8(type(Math.Rounding).max));
return Math.Rounding(r);
}