Skip to content

Commit a000ed9

Browse files
committed
fix: Fix comments and ts style warnings
1 parent 19cc58f commit a000ed9

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

helpers/contracts-deployments.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,6 @@ export const deployATokenImplementations = async (
666666
}, new Set<eContractid>()),
667667
];
668668

669-
console.log(aTokenImplementations);
670-
671669
for (let x = 0; x < aTokenImplementations.length; x++) {
672670
const aTokenAddress = getOptionalParamAddressPerNetwork(
673671
poolConfig[aTokenImplementations[x].toString()],

helpers/types.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,14 @@ export enum EthereumNetworkNames {
3838
mumbai = 'mumbai',
3939
xdai = 'xdai',
4040
avalanche = 'avalanche',
41-
fuji = 'fuji'
42-
41+
fuji = 'fuji',
4342
}
4443

4544
export enum AavePools {
4645
proto = 'proto',
4746
matic = 'matic',
4847
amm = 'amm',
49-
avalanche = 'avalanche'
48+
avalanche = 'avalanche',
5049
}
5150

5251
export enum eContractid {
@@ -367,7 +366,7 @@ export enum TokenContractId {
367366
WMATIC = 'WMATIC',
368367
STAKE = 'STAKE',
369368
xSUSHI = 'xSUSHI',
370-
AVAX = 'AVAX'
369+
AVAX = 'AVAX',
371370
}
372371

373372
export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {

markets/avalanche/commons.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const CommonsConfig: ICommonConfiguration = {
117117
},
118118
FallbackOracle: {
119119
[eAvalancheNetwork.avalanche]: ZERO_ADDRESS,
120-
[eAvalancheNetwork.fuji]: ZERO_ADDRESS // TODO: Deploy?
120+
[eAvalancheNetwork.fuji]: ZERO_ADDRESS
121121
},
122122
ChainlinkAggregator: {
123123
[eAvalancheNetwork.avalanche]: {
@@ -150,8 +150,8 @@ export const CommonsConfig: ICommonConfiguration = {
150150
[eAvalancheNetwork.fuji]: ''
151151
},
152152
WETH: {
153-
[eAvalancheNetwork.avalanche]: '0xf20d962a6c8f70c731bd838a3a388D7d48fA6e15', // TODO: ETH Address
154-
[eAvalancheNetwork.fuji]: '0x3b8b3fc85ccA720809Af2dA4B58cF4ce84bcbdd0' // TODO: Mock ETH
153+
[eAvalancheNetwork.avalanche]: '0xf20d962a6c8f70c731bd838a3a388D7d48fA6e15', // WETH Address
154+
[eAvalancheNetwork.fuji]: '0x3b8b3fc85ccA720809Af2dA4B58cF4ce84bcbdd0' // MintableERC20 WETH
155155
},
156156
WrappedNativeToken: {
157157
[eAvalancheNetwork.avalanche]: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', // Official WAVAX

markets/avalanche/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const AvalancheConfig: IAvalancheConfiguration = {
3939
WBTC: '0x408D4cD0ADb7ceBd1F1A1C33A0Ba2098E1295bAB',
4040
// AVAX: '' // TODO: Use WAVAX?
4141
},
42-
[eAvalancheNetwork.fuji]: { // TODO: Deploy Mock tokens
42+
[eAvalancheNetwork.fuji]: { // MintableERC20 tokens
4343
WETH: '0x3b8b3fc85ccA720809Af2dA4B58cF4ce84bcbdd0',
4444
// DAI: '0x51BC2DfB9D12d9dB50C855A5330fBA0faF761D15',
4545
// USDC: '0x7804D7f48f6E5749AF5c8Fa87b20702C34a7f5c2',

test-suites/test-aave/__setup.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
deployLendingPoolConfigurator,
1414
deployLendingPool,
1515
deployPriceOracle,
16-
deployAaveOracleV2,
1716
deployLendingPoolCollateralManager,
1817
deployMockFlashLoanReceiver,
1918
deployWalletBalancerProvider,
@@ -29,6 +28,7 @@ import {
2928
deployFlashLiquidationAdapter,
3029
authorizeWETHGateway,
3130
deployATokenImplementations,
31+
deployAaveOracle,
3232
} from '../../helpers/contracts-deployments';
3333
import { Signer } from 'ethers';
3434
import { TokenContractId, eContractid, tEthereumAddress, AavePools } from '../../helpers/types';
@@ -221,7 +221,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
221221
config.OracleQuoteCurrency
222222
);
223223

224-
await deployAaveOracleV2([
224+
await deployAaveOracle([
225225
tokens,
226226
aggregators,
227227
fallbackOracle.address,

test-suites/test-amm/__setup.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
deployLendingPoolConfigurator,
1414
deployLendingPool,
1515
deployPriceOracle,
16-
deployAaveOracleV2,
1716
deployLendingPoolCollateralManager,
1817
deployMockFlashLoanReceiver,
1918
deployWalletBalancerProvider,
@@ -29,6 +28,7 @@ import {
2928
deployFlashLiquidationAdapter,
3029
authorizeWETHGateway,
3130
deployATokenImplementations,
31+
deployAaveOracle,
3232
} from '../../helpers/contracts-deployments';
3333
import { Signer } from 'ethers';
3434
import { TokenContractId, eContractid, tEthereumAddress, AavePools } from '../../helpers/types';
@@ -226,7 +226,7 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
226226
config.OracleQuoteCurrency
227227
);
228228

229-
await deployAaveOracleV2([
229+
await deployAaveOracle([
230230
tokens,
231231
aggregators,
232232
fallbackOracle.address,

0 commit comments

Comments
 (0)