mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated tests on enableBorrowingOnReserve
This commit is contained in:
parent
bad45772c1
commit
450cdfa95c
|
@ -137,9 +137,30 @@ makeSuite('LendingPoolConfigurator', (testEnv: TestEnv) => {
|
||||||
it('Activates the ETH reserve for borrowing', async () => {
|
it('Activates the ETH reserve for borrowing', async () => {
|
||||||
const {configurator, pool, weth} = testEnv;
|
const {configurator, pool, weth} = testEnv;
|
||||||
await configurator.enableBorrowingOnReserve(weth.address, true);
|
await configurator.enableBorrowingOnReserve(weth.address, true);
|
||||||
const {borrowingEnabled} = await pool.getReserveConfigurationData(weth.address);
|
|
||||||
const {variableBorrowIndex} = await pool.getReserveData(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(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);
|
expect(variableBorrowIndex.toString()).to.be.equal(RAY);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user