mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fix tests missing param
This commit is contained in:
parent
84d1ed0cb7
commit
e2bc6fbc73
|
@ -35,6 +35,7 @@ import {
|
||||||
import {waitForTx} from '../helpers/misc-utils';
|
import {waitForTx} from '../helpers/misc-utils';
|
||||||
import {enableReservesToBorrow, enableReservesAsCollateral} from '../helpers/init-helpers';
|
import {enableReservesToBorrow, enableReservesAsCollateral} from '../helpers/init-helpers';
|
||||||
import {AaveConfig} from '../config/aave';
|
import {AaveConfig} from '../config/aave';
|
||||||
|
import {MockFlashLoanReceiverFactory} from '../types';
|
||||||
|
|
||||||
const MOCK_USD_PRICE_IN_WEI = AaveConfig.ProtocolGlobalParams.MockUsdPriceInWei;
|
const MOCK_USD_PRICE_IN_WEI = AaveConfig.ProtocolGlobalParams.MockUsdPriceInWei;
|
||||||
const ALL_ASSETS_INITIAL_PRICES = AaveConfig.Mocks.AllAssetsInitialPrices;
|
const ALL_ASSETS_INITIAL_PRICES = AaveConfig.Mocks.AllAssetsInitialPrices;
|
||||||
|
@ -206,7 +207,8 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
|
||||||
addressesProvider,
|
addressesProvider,
|
||||||
lendingPoolProxy,
|
lendingPoolProxy,
|
||||||
lendingPoolConfiguratorProxy,
|
lendingPoolConfiguratorProxy,
|
||||||
AavePools.proto
|
AavePools.proto,
|
||||||
|
false
|
||||||
);
|
);
|
||||||
await enableReservesToBorrow(
|
await enableReservesToBorrow(
|
||||||
reservesParams,
|
reservesParams,
|
||||||
|
|
|
@ -94,7 +94,6 @@ export async function initializeMakeSuite() {
|
||||||
|
|
||||||
testEnv.helpersContract = await getAaveProtocolTestHelpers();
|
testEnv.helpersContract = await getAaveProtocolTestHelpers();
|
||||||
|
|
||||||
console.log(await testEnv.helpersContract.getAllATokens());
|
|
||||||
const aDaiAddress = (await testEnv.helpersContract.getAllATokens()).find(
|
const aDaiAddress = (await testEnv.helpersContract.getAllATokens()).find(
|
||||||
(aToken) => aToken.symbol === 'aDAI'
|
(aToken) => aToken.symbol === 'aDAI'
|
||||||
)?.tokenAddress;
|
)?.tokenAddress;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user