mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
test: added testing droped reserve is inactive
This commit is contained in:
parent
a0f6199ea3
commit
58ab73272e
|
@ -36,7 +36,6 @@ makeSuite('Pause Reserve', (testEnv: TestEnv) => {
|
||||||
|
|
||||||
const depositedAmount = parseEther('1000');
|
const depositedAmount = parseEther('1000');
|
||||||
const borrowedAmount = parseEther('100');
|
const borrowedAmount = parseEther('100');
|
||||||
console.log((await aDai.totalSupply()).toString());
|
|
||||||
// setting reserve factor to 0 to ease tests, no aToken accrued in reserve
|
// setting reserve factor to 0 to ease tests, no aToken accrued in reserve
|
||||||
await configurator.setReserveFactor(dai.address, 0);
|
await configurator.setReserveFactor(dai.address, 0);
|
||||||
|
|
||||||
|
@ -91,14 +90,18 @@ makeSuite('Pause Reserve', (testEnv: TestEnv) => {
|
||||||
aDai,
|
aDai,
|
||||||
weth,
|
weth,
|
||||||
configurator,
|
configurator,
|
||||||
|
helpersContract,
|
||||||
} = testEnv;
|
} = testEnv;
|
||||||
|
|
||||||
await pool.withdraw(dai.address, MAX_UINT_AMOUNT, deployer.address);
|
await pool.withdraw(dai.address, MAX_UINT_AMOUNT, deployer.address);
|
||||||
console.log((await aDai.totalSupply()).toString());
|
|
||||||
await configurator.dropReserve(dai.address);
|
await configurator.dropReserve(dai.address);
|
||||||
|
|
||||||
const tokens = await pool.getReservesList();
|
const tokens = await pool.getReservesList();
|
||||||
|
|
||||||
expect(tokens.includes(dai.address)).to.be.false;
|
expect(tokens.includes(dai.address)).to.be.false;
|
||||||
|
|
||||||
|
const { isActive } = await helpersContract.getReserveConfigurationData(dai.address);
|
||||||
|
|
||||||
|
expect(isActive).to.be.false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user