From f88560593d0e1f8e72f9d86d67d7282c9a0b21d5 Mon Sep 17 00:00:00 2001 From: PraneshASP Date: Mon, 6 May 2024 22:17:18 +0530 Subject: [PATCH] chore: cleanup --- contracts/contracts/harvest/AeroHavester.sol | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/contracts/contracts/harvest/AeroHavester.sol b/contracts/contracts/harvest/AeroHavester.sol index 562ba69d7d..759a6ab515 100644 --- a/contracts/contracts/harvest/AeroHavester.sol +++ b/contracts/contracts/harvest/AeroHavester.sol @@ -55,7 +55,6 @@ contract AeroHarvester is Governable { error InvalidSwapPlatform(SwapPlatform swapPlatform); - error InvalidUniswapV2PathLength(); error InvalidTokenInSwapPath(address token); error UnsupportedStrategy(address strategyAddress); @@ -69,7 +68,7 @@ contract AeroHarvester is Governable { uint16 allowedSlippageBps; // Reward when calling a harvest function denominated in basis points. uint16 harvestRewardBps; - // Address of Uniswap V2 compatible protocol like Aerodrome. + // Address of AMM protocol like Aerodrome to perform swap Rewards => BaseToken. address swapPlatformAddr; /* When true the reward token is being swapped. In a need of (temporarily) disabling the swapping of * a reward token this needs to be set to false. @@ -87,8 +86,6 @@ contract AeroHarvester is Governable { mapping(address => RewardTokenConfig) public rewardTokenConfigs; mapping(address => bool) public supportedStrategies; - // address public immutable vaultAddress; - /** * Address receiving rewards proceeds. Initially the Vault contract later will possibly * be replaced by another contract that eases out rewards distribution. @@ -147,7 +144,7 @@ contract AeroHarvester is Governable { * Example: 300 == 3% slippage * @param tokenConfig.harvestRewardBps uint16 amount of reward tokens the caller of the function is rewarded. * Example: 100 == 1% - * @param tokenConfig.swapPlatformAddr Address Address of a UniswapV2 compatible contract to perform + * @param tokenConfig.swapPlatformAddr Address of a AMM contract to perform * the exchange from reward tokens to stablecoin (currently hard-coded to USDT) * @param tokenConfig.liquidationLimit uint256 Maximum amount of token to be sold per one swap function call. * When value is 0 there is no limit. @@ -461,9 +458,9 @@ contract AeroHarvester is Governable { } /** - * @dev Swaps the token to `baseToken` with Uniswap V2 + * @dev Swaps the token to `baseToken` with Aerodrome * - * @param routerAddress Uniswap V2 Router address + * @param routerAddress Aerodrome Router address * @param swapToken Address of the tokenIn * @param amountIn Amount of `swapToken` to swap * @param minAmountOut Minimum expected amount of `baseToken`