From 4bb7d0c5dbfbb7ba4288affb25ba19a912388df9 Mon Sep 17 00:00:00 2001 From: The3D Date: Mon, 30 Nov 2020 12:53:33 +0100 Subject: [PATCH] Updated config --- markets/aave/reservesConfigs.ts | 4 ++-- test/liquidation-underlying.spec.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/markets/aave/reservesConfigs.ts b/markets/aave/reservesConfigs.ts index be7487d0..68ec93d6 100644 --- a/markets/aave/reservesConfigs.ts +++ b/markets/aave/reservesConfigs.ts @@ -78,7 +78,7 @@ export const strategyUSDC: IReserveParams = { stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(), stableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(), baseLTVAsCollateral: '8000', - liquidationThreshold: '8000', + liquidationThreshold: '8500', liquidationBonus: '10500', borrowingEnabled: true, stableBorrowRateEnabled: true, @@ -95,7 +95,7 @@ export const strategyUSDT: IReserveParams = { stableRateSlope1: new BigNumber(0.02).multipliedBy(oneRay).toFixed(), stableRateSlope2: new BigNumber(0.60).multipliedBy(oneRay).toFixed(), baseLTVAsCollateral: '8000', - liquidationThreshold: '8000', + liquidationThreshold: '8500', liquidationBonus: '10500', borrowingEnabled: true, stableBorrowRateEnabled: true, diff --git a/test/liquidation-underlying.spec.ts b/test/liquidation-underlying.spec.ts index 9dc0ac80..e03cded5 100644 --- a/test/liquidation-underlying.spec.ts +++ b/test/liquidation-underlying.spec.ts @@ -109,7 +109,7 @@ makeSuite('LendingPool liquidation - liquidator receiving the underlying asset', await oracle.setAssetPrice( dai.address, - new BigNumber(daiPrice.toString()).multipliedBy(1.25).toFixed(0) + new BigNumber(daiPrice.toString()).multipliedBy(1.18).toFixed(0) ); const userGlobalData = await pool.getUserAccountData(borrower.address); @@ -280,7 +280,7 @@ makeSuite('LendingPool liquidation - liquidator receiving the underlying asset', //drops HF below 1 await oracle.setAssetPrice( usdc.address, - new BigNumber(usdcPrice.toString()).multipliedBy(1.2).toFixed(0) + new BigNumber(usdcPrice.toString()).multipliedBy(1.12).toFixed(0) ); //mints dai to the liquidator @@ -402,7 +402,7 @@ makeSuite('LendingPool liquidation - liquidator receiving the underlying asset', //drops HF below 1 await oracle.setAssetPrice( usdc.address, - new BigNumber(usdcPrice.toString()).multipliedBy(1.12).toFixed(0) + new BigNumber(usdcPrice.toString()).multipliedBy(1.08).toFixed(0) ); //mints usdc to the liquidator