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 ** 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) { if (_token == 0xc7198437980c041c805A1EDcbA50c1Ce5db95118) {
// USDT.e => USDT // USDT.e => USDT
return 0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7 return 0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7;
} else if (_token == 0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664) { } else if (_token == 0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664) {
// USDC.e => USDC // USDC.e => USDC
return 0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e return 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E;
} else { } else {
return _token return _token;
} }
} }
function getBorrowAmountV2(address _token, address userAccount) function getBorrowAmountV2(address _token, address userAccount)
internal internal
view view

View File

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