From 450cdfa95c197d8d44f8c3fed70095b84e3c49f2 Mon Sep 17 00:00:00 2001 From: The3D Date: Tue, 6 Oct 2020 11:03:51 +0200 Subject: [PATCH] Updated tests on enableBorrowingOnReserve --- test/configurator.spec.ts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/test/configurator.spec.ts b/test/configurator.spec.ts index d83f5d71..de6fbd76 100644 --- a/test/configurator.spec.ts +++ b/test/configurator.spec.ts @@ -137,9 +137,30 @@ makeSuite('LendingPoolConfigurator', (testEnv: TestEnv) => { it('Activates the ETH reserve for borrowing', async () => { const {configurator, pool, weth} = testEnv; await configurator.enableBorrowingOnReserve(weth.address, true); - const {borrowingEnabled} = await pool.getReserveConfigurationData(weth.address); const {variableBorrowIndex} = await pool.getReserveData(weth.address); + + const { + decimals, + ltv, + liquidationBonus, + liquidationThreshold, + reserveFactor, + stableBorrowRateEnabled, + borrowingEnabled, + isActive, + isFreezed, + } = await pool.getReserveConfigurationData(weth.address); + expect(borrowingEnabled).to.be.equal(true); + expect(isActive).to.be.equal(true); + expect(isFreezed).to.be.equal(false); + expect(decimals).to.be.equal(18); + expect(ltv).to.be.equal(7500); + expect(liquidationThreshold).to.be.equal(8000); + expect(liquidationBonus).to.be.equal(10500); + expect(stableBorrowRateEnabled).to.be.equal(true); + expect(reserveFactor).to.be.equal(0); + expect(variableBorrowIndex.toString()).to.be.equal(RAY); });