From c86884ef2858d70a6081c531c6f41f1079d7cbfe Mon Sep 17 00:00:00 2001 From: emilio Date: Sun, 2 Aug 2020 18:36:04 +0200 Subject: [PATCH] Fixes tests on liquidation --- contracts/lendingpool/LendingPoolLiquidationManager.sol | 2 +- deployed-contracts.json | 2 +- test/liquidation-underlying.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/lendingpool/LendingPoolLiquidationManager.sol b/contracts/lendingpool/LendingPoolLiquidationManager.sol index c7c614dd..e6b4e50a 100644 --- a/contracts/lendingpool/LendingPoolLiquidationManager.sol +++ b/contracts/lendingpool/LendingPoolLiquidationManager.sol @@ -45,7 +45,7 @@ contract LendingPoolLiquidationManager is ReentrancyGuard, VersionedInitializabl address[] public reservesList; - uint256 constant LIQUIDATION_CLOSE_FACTOR_PERCENT = 50; + uint256 constant LIQUIDATION_CLOSE_FACTOR_PERCENT = 5000; /** * @dev emitted when a borrower is liquidated diff --git a/deployed-contracts.json b/deployed-contracts.json index d3fe5f3d..e6b20b9a 100644 --- a/deployed-contracts.json +++ b/deployed-contracts.json @@ -438,4 +438,4 @@ "deployer": "0xc783df8a850f42e7F7e57013759C285caa701eB6" } } -} +} \ No newline at end of file diff --git a/test/liquidation-underlying.spec.ts b/test/liquidation-underlying.spec.ts index 34a77ffd..5a62d680 100644 --- a/test/liquidation-underlying.spec.ts +++ b/test/liquidation-underlying.spec.ts @@ -425,7 +425,7 @@ makeSuite('LendingPool liquidation - liquidator receiving the underlying asset', .div( new BigNumber(principalPrice.toString()).times(new BigNumber(10).pow(collateralDecimals)) ) - .times(100) + .times(10000) .div(liquidationBonus.toString()) .decimalPlaces(0, BigNumber.ROUND_DOWN);