removed unnecessary require statement

This commit is contained in:
Samyak Jain 2020-05-23 20:52:48 +10:00
parent ff390f88fc
commit d9f86e3b68

View File

@ -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);
}