Update contracts/senders/aave-v2-migrator/main.sol

This commit is contained in:
Thrilok kumar 2021-04-16 22:16:56 +05:30 committed by GitHub
parent f239c0eb6d
commit bcc59c5964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,6 @@ contract LiquidityResolver is Helpers, Events {
for (uint i = 0; i < _tokens.length; i++) {
address _token = _tokens[i] == ethAddr ? wethAddr : _tokens[i];
aave.withdraw(_token, _amts[i], address(this));
// TODO: Verify this
IERC20(_token).safeApprove(erc20Predicate, _amts[i]);
rootChainManager.depositFor(polygonReceiver, _token, abi.encode(_amts[i]));