mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Merge pull request #195 from Instadapp/aave-v2-v3-import-fix
Fixed Aave V2 to V3 migration connector
This commit is contained in:
commit
d4870b3e96
|
@ -143,7 +143,11 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper {
|
||||||
payable
|
payable
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
(_eventName, _eventParam) = _importAave(msg.sender, inputData, false);
|
(_eventName, _eventParam) = _importAave(
|
||||||
|
address(this),
|
||||||
|
inputData,
|
||||||
|
false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,11 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper {
|
||||||
payable
|
payable
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
(_eventName, _eventParam) = _importAave(msg.sender, inputData, false);
|
(_eventName, _eventParam) = _importAave(
|
||||||
|
address(this),
|
||||||
|
inputData,
|
||||||
|
false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ const networkGasPriceConfig: Record<string, string> = {
|
||||||
function createConfig(network: string) {
|
function createConfig(network: string) {
|
||||||
return {
|
return {
|
||||||
url: getNetworkUrl(network),
|
url: getNetworkUrl(network),
|
||||||
accounts: !!PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : { mnemonic }
|
accounts: !!PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : { mnemonic },
|
||||||
// gasPrice: 1000000, // 0.0001 GWEI
|
gasPrice: 35 * 1e9 // 0.0001 GWEI
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ const config: HardhatUserConfig = {
|
||||||
tests: "./test"
|
tests: "./test"
|
||||||
},
|
},
|
||||||
etherscan: {
|
etherscan: {
|
||||||
apiKey: getScanApiKey(String(process.env.networkType))
|
apiKey: "CZ1YB396AX4XAQ489Y4NJ33SJBCYZZD1VS"
|
||||||
},
|
},
|
||||||
typechain: {
|
typechain: {
|
||||||
outDir: "typechain",
|
outDir: "typechain",
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
"dotenv": "^10.0.0",
|
"dotenv": "^10.0.0",
|
||||||
"hardhat-docgen": "^1.2.0",
|
"hardhat-docgen": "^1.2.0",
|
||||||
"inquirer": "^8.2.0",
|
"inquirer": "^8.2.0",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"solc": "^0.8.10",
|
"solc": "^0.8.10",
|
||||||
"typechain": "^6.0.5"
|
"typechain": "^6.0.5"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user