Merge branch 'new-tests' of https://github.com/Instadapp/dsa-polygon-migration into new-tests

This commit is contained in:
Thrilok Kumar 2021-04-16 21:30:48 +05:30
commit 5658a92037

View File

@ -51,8 +51,7 @@ contract MigrateResolver is Helpers, Events {
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
for (uint i = 0; i < supportedTokens.length; i++) {
address _token = supportedTokens[i];
if (_token == maticAddr) {
_token = wmaticAddr;
if (_token == wmaticAddr) {
if (address(this).balance > 0) {
TokenInterface(wmaticAddr).deposit{value: address(this).balance}();
}