From d4abc123492f637ef12a3e424c3360db5694fdf6 Mon Sep 17 00:00:00 2001 From: The3D Date: Thu, 22 Oct 2020 19:06:37 +0200 Subject: [PATCH] Updated wadDiv --- contracts/libraries/math/WadRayMath.sol | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contracts/libraries/math/WadRayMath.sol b/contracts/libraries/math/WadRayMath.sol index 949118c6..6b67641c 100644 --- a/contracts/libraries/math/WadRayMath.sol +++ b/contracts/libraries/math/WadRayMath.sol @@ -74,10 +74,6 @@ library WadRayMath { function wadDiv(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, Errors.DIVISION_BY_ZERO); - if (a == 0) { - return 0; - } - uint256 halfB = b / 2; uint256 result = a * WAD;