minor bug fix

This commit is contained in:
Samyak Jain 2021-04-15 03:48:00 +05:30
parent 818fcfeb13
commit 11ac919025

View File

@ -89,11 +89,11 @@ contract AaveV2Migrator is MigrateResolver {
function _migratePosition(AaveData memory _data) internal { function _migratePosition(AaveData memory _data) internal {
AaveData memory data = remapTokens(_data); // converting L1 token addresses to L2 addresses AaveData memory data = remapTokens(_data); // converting L1 token addresses to L2 addresses
address dsa = _data.targetDsa; address dsa = data.targetDsa;
uint[] memory supplyAmts = _data.supplyAmts; uint[] memory supplyAmts = data.supplyAmts;
uint[] memory borrowAmts = _data.borrowAmts; uint[] memory borrowAmts = data.borrowAmts;
address[] memory supplyTokens = _data.supplyTokens; address[] memory supplyTokens = data.supplyTokens;
address[] memory borrowTokens = _data.borrowTokens; address[] memory borrowTokens = data.borrowTokens;
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());