mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Added test on disable stable borrow rate
This commit is contained in:
parent
35db5833fa
commit
b30ccd6dd2
|
@ -280,9 +280,27 @@ makeSuite('LendingPoolConfigurator', (testEnv: TestEnv) => {
|
||||||
it('Enables stable borrow rate on the ETH reserve', async () => {
|
it('Enables stable borrow rate on the ETH reserve', async () => {
|
||||||
const {configurator, pool, weth} = testEnv;
|
const {configurator, pool, weth} = testEnv;
|
||||||
await configurator.enableReserveStableRate(weth.address);
|
await configurator.enableReserveStableRate(weth.address);
|
||||||
const {stableBorrowRateEnabled} = await pool.getReserveConfigurationData(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(stableBorrowRateEnabled).to.be.equal(true);
|
||||||
});
|
expect(reserveFactor).to.be.equal(0); });
|
||||||
|
|
||||||
it('Check the onlyAaveAdmin on disableReserveStableRate', async () => {
|
it('Check the onlyAaveAdmin on disableReserveStableRate', async () => {
|
||||||
const {configurator, users, weth} = testEnv;
|
const {configurator, users, weth} = testEnv;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user