From d9f86e3b689aa936a2f3123c0af7594627838e4a Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Sat, 23 May 2020 20:52:48 +1000 Subject: [PATCH] removed unnecessary require statement --- contracts/connectors/aave.sol | 1 - 1 file changed, 1 deletion(-) diff --git a/contracts/connectors/aave.sol b/contracts/connectors/aave.sol index 4cd9366..c35c64a 100644 --- a/contracts/connectors/aave.sol +++ b/contracts/connectors/aave.sol @@ -101,7 +101,6 @@ contract BasicResolver is AaveHelpers { } else { TokenInterface tokenContract = TokenInterface(token); _amt = _amt == uint(-1) ? tokenContract.balanceOf(address(this)) : _amt; - require(tokenContract.balanceOf(address(this)) >= _amt, "not-enough-token"); tokenContract.approve(getAaveCoreAddress(), _amt); }