mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated wadDiv
This commit is contained in:
parent
d05a2d1c4f
commit
d4abc12349
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user