Fixes tests on liquidation

This commit is contained in:
emilio 2020-08-02 18:36:04 +02:00
parent 692cc87f62
commit c86884ef28
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);