mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
don't add matic on supported token add wmatic
This commit is contained in:
parent
af8563d14f
commit
bdfe93faf9
|
@ -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}();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user