Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PraneshASP committed May 6, 2024
1 parent 2bf9eca commit f885605
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions contracts/contracts/harvest/AeroHavester.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ contract AeroHarvester is Governable {

error InvalidSwapPlatform(SwapPlatform swapPlatform);

error InvalidUniswapV2PathLength();
error InvalidTokenInSwapPath(address token);

error UnsupportedStrategy(address strategyAddress);
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit f885605

Please sign in to comment.