From 95636c86230612fb70968f50f350628e04977e51 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Sat, 17 Apr 2021 03:00:25 +0530 Subject: [PATCH] Minor change --- contracts/senders/aave-v2-migrator/main.sol | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/senders/aave-v2-migrator/main.sol b/contracts/senders/aave-v2-migrator/main.sol index 462a0cd..f64fcd6 100644 --- a/contracts/senders/aave-v2-migrator/main.sol +++ b/contracts/senders/aave-v2-migrator/main.sol @@ -166,12 +166,6 @@ contract MigrateResolver is LiquidityResolver { stableBorrows ); } - - function migrate(AaveDataRaw calldata _data) external { - AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); - _migrate(aave, _data, msg.sender); - } - function migrateFlashCallback(AaveDataRaw calldata _data, address dsa, uint ethAmt) external { require(msg.sender == address(flashloanContract), "not-flashloan-contract"); AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); @@ -183,6 +177,13 @@ contract MigrateResolver is LiquidityResolver { aave.withdraw(wethAddr, ethAmt, address(this)); require(wethContract.transfer(address(flashloanContract), ethAmt), "migrateFlashCallback: weth transfer failed to Instapool"); } +} + +contract InstaAaveV2MigratorSenderImplementation is MigrateResolver { + function migrate(AaveDataRaw calldata _data) external { + AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); + _migrate(aave, _data, msg.sender); + } function migrateWithFlash(AaveDataRaw calldata _data, uint ethAmt) external { bytes memory callbackData = abi.encodeWithSelector(bytes4(this.migrateFlashCallback.selector), _data, msg.sender, ethAmt); @@ -190,5 +191,4 @@ contract MigrateResolver is LiquidityResolver { flashloanContract.initiateFlashLoan(data, ethAmt); } - -} +} \ No newline at end of file