From 16de46a7be4da32049294264c229f5281917c0f6 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Mon, 23 Aug 2021 14:14:06 +0200 Subject: [PATCH] fix: Remove lending word from tests --- helpers/constants.ts | 2 +- helpers/init-helpers.ts | 4 ++-- test/weth-gateway.spec.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/constants.ts b/helpers/constants.ts index 95e8922b..b1f906c1 100644 --- a/helpers/constants.ts +++ b/helpers/constants.ts @@ -23,7 +23,7 @@ export const ONE_ADDRESS = '0x0000000000000000000000000000000000000001'; // ---------------- export const OPTIMAL_UTILIZATION_RATE = new BigNumber(0.8).times(RAY); export const EXCESS_UTILIZATION_RATE = new BigNumber(0.2).times(RAY); -export const APPROVAL_AMOUNT_LENDING_POOL = '1000000000000000000000000000'; +export const APPROVAL_AMOUNT_POOL = '1000000000000000000000000000'; export const TOKEN_DISTRIBUTOR_PERCENTAGE_BASE = '10000'; export const MOCK_USD_PRICE_IN_WEI = '5848466240000000'; export const USD_ADDRESS = '0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96'; diff --git a/helpers/init-helpers.ts b/helpers/init-helpers.ts index 71c5ac3a..41753fee 100644 --- a/helpers/init-helpers.ts +++ b/helpers/init-helpers.ts @@ -314,8 +314,8 @@ export const configureReservesByHelper = async ( export const authorizeWETHGateway = async ( wethGateWay: tEthereumAddress, - lendingPool: tEthereumAddress + pool: tEthereumAddress ) => await new WETHGateway__factory(await getFirstSigner()) .attach(wethGateWay) - .authorizeLendingPool(lendingPool); + .authorizePool(pool); diff --git a/test/weth-gateway.spec.ts b/test/weth-gateway.spec.ts index 59415a29..b3e46062 100644 --- a/test/weth-gateway.spec.ts +++ b/test/weth-gateway.spec.ts @@ -8,7 +8,7 @@ import { deploySelfdestructTransferMock } from '../helpers/contracts-deployments const { expect } = require('chai'); -makeSuite('Use native ETH at LendingPool via WETHGateway', (testEnv: TestEnv) => { +makeSuite('Use native ETH at Pool via WETHGateway', (testEnv: TestEnv) => { const zero = BigNumber.from('0'); const depositSize = utils.parseEther('5'); const daiSize = utils.parseEther('10000');