From afcd8a52fe47cb72b1507f725f15b06ffa226249 Mon Sep 17 00:00:00 2001 From: Veliko Minkov <2662912+vminkov@users.noreply.github.com> Date: Mon, 1 Apr 2024 15:15:46 +0300 Subject: [PATCH] kim v4 redemption config and router in the registry --- .../registry/LiquidatorsRegistryExtension.sol | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contracts/liquidators/registry/LiquidatorsRegistryExtension.sol b/contracts/liquidators/registry/LiquidatorsRegistryExtension.sol index 44fbd3d2..8a7e19b2 100644 --- a/contracts/liquidators/registry/LiquidatorsRegistryExtension.sol +++ b/contracts/liquidators/registry/LiquidatorsRegistryExtension.sol @@ -259,6 +259,8 @@ contract LiquidatorsRegistryExtension is LiquidatorsRegistryStorage, DiamondExte strategyData = uniswapV3LiquidatorFunderData(inputToken, outputToken); } else if (isStrategy(strategy, "AlgebraSwapLiquidator")) { strategyData = algebraSwapLiquidatorData(inputToken, outputToken); + } else if (isStrategy(strategy, "KimUniV4Liquidator")) { + strategyData = kimV4LiquidatorData(inputToken, outputToken); } else if (isStrategy(strategy, "GammaAlgebraLpTokenLiquidator")) { strategyData = gammaAlgebraLpTokenLiquidatorData(inputToken, outputToken); } else if (isStrategy(strategy, "GammaUniswapV3LpTokenLiquidator")) { @@ -465,6 +467,15 @@ contract LiquidatorsRegistryExtension is LiquidatorsRegistryStorage, DiamondExte strategyData = abi.encode(outputToken, ap.getAddress("ALGEBRA_SWAP_ROUTER")); } + function kimV4LiquidatorData(IERC20Upgradeable inputToken, IERC20Upgradeable outputToken) + internal + view + returns (bytes memory strategyData) + { + address kimV4SwapRouter = 0xAc48FcF1049668B285f3dC72483DF5Ae2162f7e8; + strategyData = abi.encode(outputToken, kimV4SwapRouter); + } + function gammaAlgebraLpTokenLiquidatorData(IERC20Upgradeable inputToken, IERC20Upgradeable outputToken) internal view