You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
* @dev Do not transfer NATIVE or tokens directly to this address. Only send NATIVE here when using a method, and only approve tokens for transfer to here when using a method. Direct NATIVE transfers will be rejected and direct token transfers will be lost.
function setExpressRelay(address_expressRelay) external onlyOwner {
475
+
expressRelay =IExpressRelay(_expressRelay);
476
+
}
477
+
478
+
function setPoolLens(address_poolLens) external onlyOwner {
479
+
lens =PoolLens(_poolLens);
480
+
}
481
+
482
+
function setHealthFactorThreshold(uint256_healthFactorThreshold) external onlyOwner {
483
+
require(_healthFactorThreshold <=1e18, "Invalid Health Factor Threshold");
484
+
healthFactorThreshold = _healthFactorThreshold;
485
+
}
486
+
422
487
/**
423
488
* @dev Redeem "special" collateral tokens (before swapping the output for borrowed tokens to be repaid via Uniswap).
424
489
* Public visibility because we have to call this function externally if called from a payable IonicLiquidator function (for some reason delegatecall fails when called with msg.value > 0).
@@ -341,6 +391,19 @@ contract IonicUniV3Liquidator is OwnableUpgradeable, ILiquidator, IUniswapV3Flas
341
391
}
342
392
}
343
393
394
+
function setExpressRelay(address_expressRelay) external onlyOwner {
395
+
expressRelay =IExpressRelay(_expressRelay);
396
+
}
397
+
398
+
function setPoolLens(address_poolLens) external onlyOwner {
399
+
lens =PoolLens(_poolLens);
400
+
}
401
+
402
+
function setHealthFactorThreshold(uint256_healthFactorThreshold) external onlyOwner {
403
+
require(_healthFactorThreshold <=1e18, "Invalid Health Factor Threshold");
404
+
healthFactorThreshold = _healthFactorThreshold;
405
+
}
406
+
344
407
/**
345
408
* @dev Redeem "special" collateral tokens (before swapping the output for borrowed tokens to be repaid via Uniswap).
346
409
* Public visibility because we have to call this function externally if called from a payable IonicLiquidator function (for some reason delegatecall fails when called with msg.value > 0).
0 commit comments