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.
require(vars.repayAmount >0, "Repay amount must be greater than 0.");
168
181
@@ -434,6 +447,15 @@ contract IonicLiquidator is OwnableUpgradeable, ILiquidator, IUniswapV2Callee, I
434
447
expressRelay =IExpressRelay(_expressRelay);
435
448
}
436
449
450
+
function setPoolLens(PoolLens _poolLens) external onlyOwner {
451
+
lens = _poolLens;
452
+
}
453
+
454
+
function setHealthFactorThreshold(uint256_healthFactorThreshold) external onlyOwner {
455
+
require(_healthFactorThreshold <=1e18, "Invalid Health Factor Threshold");
456
+
healthFactorThreshold = _healthFactorThreshold;
457
+
}
458
+
437
459
/**
438
460
* @dev Redeem "special" collateral tokens (before swapping the output for borrowed tokens to be repaid via Uniswap).
439
461
* 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).
"list of strategies empty or whitelist does not match its length"
@@ -342,6 +362,19 @@ contract IonicUniV3Liquidator is OwnableUpgradeable, ILiquidator, IUniswapV3Flas
342
362
}
343
363
}
344
364
365
+
function setExpressRelay(address_expressRelay) external onlyOwner {
366
+
expressRelay =IExpressRelay(_expressRelay);
367
+
}
368
+
369
+
function setPoolLens(PoolLens _poolLens) external onlyOwner {
370
+
lens = _poolLens;
371
+
}
372
+
373
+
function setHealthFactorThreshold(uint256_healthFactorThreshold) external onlyOwner {
374
+
require(_healthFactorThreshold <=1e18, "Invalid Health Factor Threshold");
375
+
healthFactorThreshold = _healthFactorThreshold;
376
+
}
377
+
345
378
/**
346
379
* @dev Redeem "special" collateral tokens (before swapping the output for borrowed tokens to be repaid via Uniswap).
347
380
* 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