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()); AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
for (uint i = 0; i < supportedTokens.length; i++) { for (uint i = 0; i < supportedTokens.length; i++) {
address _token = supportedTokens[i]; address _token = supportedTokens[i];
if (_token == maticAddr) { if (_token == wmaticAddr) {
_token = wmaticAddr;
if (address(this).balance > 0) { if (address(this).balance > 0) {
TokenInterface(wmaticAddr).deposit{value: address(this).balance}(); TokenInterface(wmaticAddr).deposit{value: address(this).balance}();
} }