mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
removed another checkRatio
This commit is contained in:
parent
8b97cddfb5
commit
d9e2ac71f1
|
@ -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());
|
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
|
||||||
(,,,,,uint healthFactor) = aave.getUserAccountData(address(this));
|
(,,,,,uint healthFactor) = aave.getUserAccountData(address(this));
|
||||||
uint minLimit = wdiv(1e18, safeRatioGap);
|
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
|
* 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 supplyTokenPrices = getTokensPrices(data.supplyTokens);
|
||||||
(uint[] memory supplyDecimals, uint[] memory supplyLts) = getTokenLt(data.supplyTokens);
|
(uint[] memory supplyDecimals, uint[] memory supplyLts) = getTokenLt(data.supplyTokens);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user