mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
removed unnecessary require statement
This commit is contained in:
parent
ff390f88fc
commit
d9f86e3b68
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user