Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
kim v4 redemption config and router in the registry
Browse files Browse the repository at this point in the history
  • Loading branch information
vminkov committed Apr 1, 2024
1 parent bd9af87 commit afcd8a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contracts/liquidators/registry/LiquidatorsRegistryExtension.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit afcd8a5

Please sign in to comment.