From d9e2ac71f117923f69b22a816d794311d09de121 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Thu, 15 Apr 2021 03:50:48 +0530 Subject: [PATCH] removed another checkRatio --- contracts/senders/aave-v2-migrator/helpers.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/senders/aave-v2-migrator/helpers.sol b/contracts/senders/aave-v2-migrator/helpers.sol index 4a720ac..4c3a7ad 100644 --- a/contracts/senders/aave-v2-migrator/helpers.sol +++ b/contracts/senders/aave-v2-migrator/helpers.sol @@ -100,7 +100,7 @@ abstract contract Helpers is DSMath, Stores, Variables { } } - function isPositionSafe() internal returns (bool isOk) { + function isPositionSafe() internal view returns (bool isOk) { AaveInterface aave = AaveInterface(aaveProvider.getLendingPool()); (,,,,,uint healthFactor) = aave.getUserAccountData(address(this)); uint minLimit = wdiv(1e18, safeRatioGap); @@ -127,7 +127,7 @@ abstract contract Helpers is DSMath, Stores, Variables { /* * Checks the position to migrate should have a safe gap from liquidation */ - function _checkRatio(AaveData memory data) public { + function _checkRatio(AaveData memory data) public view { uint[] memory supplyTokenPrices = getTokensPrices(data.supplyTokens); (uint[] memory supplyDecimals, uint[] memory supplyLts) = getTokenLt(data.supplyTokens);