fix: Fix comments and ts style warnings

This commit is contained in:
miguelmtzinf 2021-08-17 18:38:56 +02:00
parent 19cc58f30d
commit a000ed9134
6 changed files with 11 additions and 14 deletions

View File

@ -666,8 +666,6 @@ export const deployATokenImplementations = async (
}, new Set<eContractid>()),
];
console.log(aTokenImplementations);
for (let x = 0; x < aTokenImplementations.length; x++) {
const aTokenAddress = getOptionalParamAddressPerNetwork(
poolConfig[aTokenImplementations[x].toString()],

View File

@ -38,15 +38,14 @@ export enum EthereumNetworkNames {
mumbai = 'mumbai',
xdai = 'xdai',
avalanche = 'avalanche',
fuji = 'fuji'
fuji = 'fuji',
}
export enum AavePools {
proto = 'proto',
matic = 'matic',
amm = 'amm',
avalanche = 'avalanche'
avalanche = 'avalanche',
}
export enum eContractid {
@ -367,7 +366,7 @@ export enum TokenContractId {
WMATIC = 'WMATIC',
STAKE = 'STAKE',
xSUSHI = 'xSUSHI',
AVAX = 'AVAX'
AVAX = 'AVAX',
}
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {

View File

@ -117,7 +117,7 @@ export const CommonsConfig: ICommonConfiguration = {
},
FallbackOracle: {
[eAvalancheNetwork.avalanche]: ZERO_ADDRESS,
[eAvalancheNetwork.fuji]: ZERO_ADDRESS // TODO: Deploy?
[eAvalancheNetwork.fuji]: ZERO_ADDRESS
},
ChainlinkAggregator: {
[eAvalancheNetwork.avalanche]: {
@ -150,8 +150,8 @@ export const CommonsConfig: ICommonConfiguration = {
[eAvalancheNetwork.fuji]: ''
},
WETH: {
[eAvalancheNetwork.avalanche]: '0xf20d962a6c8f70c731bd838a3a388D7d48fA6e15', // TODO: ETH Address
[eAvalancheNetwork.fuji]: '0x3b8b3fc85ccA720809Af2dA4B58cF4ce84bcbdd0' // TODO: Mock ETH
[eAvalancheNetwork.avalanche]: '0xf20d962a6c8f70c731bd838a3a388D7d48fA6e15', // WETH Address
[eAvalancheNetwork.fuji]: '0x3b8b3fc85ccA720809Af2dA4B58cF4ce84bcbdd0' // MintableERC20 WETH
},
WrappedNativeToken: {
[eAvalancheNetwork.avalanche]: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', // Official WAVAX

View File

@ -39,7 +39,7 @@ export const AvalancheConfig: IAvalancheConfiguration = {
WBTC: '0x408D4cD0ADb7ceBd1F1A1C33A0Ba2098E1295bAB',
// AVAX: '' // TODO: Use WAVAX?
},
[eAvalancheNetwork.fuji]: { // TODO: Deploy Mock tokens
[eAvalancheNetwork.fuji]: { // MintableERC20 tokens
WETH: '0x3b8b3fc85ccA720809Af2dA4B58cF4ce84bcbdd0',
// DAI: '0x51BC2DfB9D12d9dB50C855A5330fBA0faF761D15',
// USDC: '0x7804D7f48f6E5749AF5c8Fa87b20702C34a7f5c2',

View File

@ -13,7 +13,6 @@ import {
deployLendingPoolConfigurator,
deployLendingPool,
deployPriceOracle,
deployAaveOracleV2,
deployLendingPoolCollateralManager,
deployMockFlashLoanReceiver,
deployWalletBalancerProvider,
@ -29,6 +28,7 @@ import {
deployFlashLiquidationAdapter,
authorizeWETHGateway,
deployATokenImplementations,
deployAaveOracle,
} from '../../helpers/contracts-deployments';
import { Signer } from 'ethers';
import { TokenContractId, eContractid, tEthereumAddress, AavePools } from '../../helpers/types';
@ -221,7 +221,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
config.OracleQuoteCurrency
);
await deployAaveOracleV2([
await deployAaveOracle([
tokens,
aggregators,
fallbackOracle.address,

View File

@ -13,7 +13,6 @@ import {
deployLendingPoolConfigurator,
deployLendingPool,
deployPriceOracle,
deployAaveOracleV2,
deployLendingPoolCollateralManager,
deployMockFlashLoanReceiver,
deployWalletBalancerProvider,
@ -29,6 +28,7 @@ import {
deployFlashLiquidationAdapter,
authorizeWETHGateway,
deployATokenImplementations,
deployAaveOracle,
} from '../../helpers/contracts-deployments';
import { Signer } from 'ethers';
import { TokenContractId, eContractid, tEthereumAddress, AavePools } from '../../helpers/types';
@ -226,7 +226,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
config.OracleQuoteCurrency
);
await deployAaveOracleV2([
await deployAaveOracle([
tokens,
aggregators,
fallbackOracle.address,