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).
@@ -156,6 +206,14 @@ contract IonicUniV3Liquidator is OwnableUpgradeable, ILiquidator, IUniswapV3Flas
156
206
uniswapV3FlashCallback(fee0, fee1, data);
157
207
}
158
208
209
+
function algebraFlashCallback(
210
+
uint256fee0,
211
+
uint256fee1,
212
+
bytescalldatadata
213
+
) external {
214
+
uniswapV3FlashCallback(fee0, fee1, data);
215
+
}
216
+
159
217
function uniswapV3FlashCallback(
160
218
uint256fee0,
161
219
uint256fee1,
@@ -333,6 +391,19 @@ contract IonicUniV3Liquidator is OwnableUpgradeable, ILiquidator, IUniswapV3Flas
333
391
}
334
392
}
335
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
+
336
407
/**
337
408
* @dev Redeem "special" collateral tokens (before swapping the output for borrowed tokens to be repaid via Uniswap).
338
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