compilation errors fixed

This commit is contained in:
pradyuman-verma 2022-03-17 00:43:11 +05:30
parent d90d18649b
commit 4d8bdf03a8
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F
2 changed files with 8 additions and 9 deletions

View File

@ -70,19 +70,18 @@ contract _AaveHelper is Helper {
/*
** Convert Avalanche Bridge tokens to Offical tokens. Like USDC.e to USDC
*/
function convertABTokens (address _token) internal view returns (address) {
function convertABTokens(address _token) internal pure returns (address) {
if (_token == 0xc7198437980c041c805A1EDcbA50c1Ce5db95118) {
// USDT.e => USDT
return 0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7
return 0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7;
} else if (_token == 0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664) {
// USDC.e => USDC
return 0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e
return 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E;
} else {
return _token
return _token;
}
}
function getBorrowAmountV2(address _token, address userAccount)
internal
view

View File

@ -106,9 +106,9 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper {
doImport,
inputData.convertStable,
inputData.supplyTokens,
inputData.supplyTokensV3,
data._supplyTokensV3,
inputData.borrowTokens,
inputData.borrowTokensV3,
data._borrowTokensV3,
inputData.flashLoanFees,
data.supplyAmts,
data.stableBorrowAmts,