mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated test on liquidation bonus
This commit is contained in:
parent
b88bdc8c2c
commit
f3852d7081
|
@ -423,12 +423,28 @@ makeSuite('LendingPoolConfigurator', (testEnv: TestEnv) => {
|
||||||
|
|
||||||
it('Changes liquidation bonus of the reserve', async () => {
|
it('Changes liquidation bonus of the reserve', async () => {
|
||||||
const {configurator, pool, weth} = testEnv;
|
const {configurator, pool, weth} = testEnv;
|
||||||
await configurator.setLiquidationBonus(weth.address, '110');
|
await configurator.setLiquidationBonus(weth.address, '11000');
|
||||||
const {liquidationBonus} = await pool.getReserveConfigurationData(weth.address);
|
const {
|
||||||
expect(liquidationBonus.toString()).to.be.bignumber.equal(
|
decimals,
|
||||||
'110',
|
ltv,
|
||||||
'Invalid Liquidation discount'
|
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(6000);
|
||||||
|
expect(liquidationThreshold).to.be.equal(7500);
|
||||||
|
expect(liquidationBonus).to.be.equal(11000);
|
||||||
|
expect(stableBorrowRateEnabled).to.be.equal(true);
|
||||||
|
expect(reserveFactor).to.be.equal(1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Check the onlyAaveAdmin on setLiquidationBonus', async () => {
|
it('Check the onlyAaveAdmin on setLiquidationBonus', async () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user