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>()), }, new Set<eContractid>()),
]; ];
console.log(aTokenImplementations);
for (let x = 0; x < aTokenImplementations.length; x++) { for (let x = 0; x < aTokenImplementations.length; x++) {
const aTokenAddress = getOptionalParamAddressPerNetwork( const aTokenAddress = getOptionalParamAddressPerNetwork(
poolConfig[aTokenImplementations[x].toString()], poolConfig[aTokenImplementations[x].toString()],

View File

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

View File

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

View File

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

View File

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

View File

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