mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
Fix double migration issue
This commit is contained in:
parent
62cd2ea563
commit
834d43eb38
|
@ -68,6 +68,8 @@ contract AaveV2Migrator is MigrateResolver {
|
|||
function _migratePosition(address owner) internal {
|
||||
AaveData storage data = positions[owner];
|
||||
|
||||
require(!data.isFinal, "already-migrated");
|
||||
|
||||
for (uint i = 0; i < data.supplyTokens.length; i++) {
|
||||
IERC20(data.supplyTokens[i]).safeTransfer(data.targetDsa, data.supplyAmts[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user