mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
compilation errors fixed
This commit is contained in:
parent
d90d18649b
commit
4d8bdf03a8
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user