mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fixes tests on liquidation
This commit is contained in:
parent
692cc87f62
commit
c86884ef28
|
@ -45,7 +45,7 @@ contract LendingPoolLiquidationManager is ReentrancyGuard, VersionedInitializabl
|
||||||
|
|
||||||
address[] public reservesList;
|
address[] public reservesList;
|
||||||
|
|
||||||
uint256 constant LIQUIDATION_CLOSE_FACTOR_PERCENT = 50;
|
uint256 constant LIQUIDATION_CLOSE_FACTOR_PERCENT = 5000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev emitted when a borrower is liquidated
|
* @dev emitted when a borrower is liquidated
|
||||||
|
|
|
@ -438,4 +438,4 @@
|
||||||
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
"deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -425,7 +425,7 @@ makeSuite('LendingPool liquidation - liquidator receiving the underlying asset',
|
||||||
.div(
|
.div(
|
||||||
new BigNumber(principalPrice.toString()).times(new BigNumber(10).pow(collateralDecimals))
|
new BigNumber(principalPrice.toString()).times(new BigNumber(10).pow(collateralDecimals))
|
||||||
)
|
)
|
||||||
.times(100)
|
.times(10000)
|
||||||
.div(liquidationBonus.toString())
|
.div(liquidationBonus.toString())
|
||||||
.decimalPlaces(0, BigNumber.ROUND_DOWN);
|
.decimalPlaces(0, BigNumber.ROUND_DOWN);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user