BaseHopStrategy
Overview
Errors
error NotEnoughFundsToInvest(); // Insufficient funds for investment
error InvalidZeroAddress(); // Zero address providedEvents
event Invested(address indexed strategy, uint256 amountInvested);
event Divested(address indexed strategy, uint256 requestedShares, uint256 amountDivested);
event MinSingleTradeUpdated(uint256 minSingleTrade);
event MaxSingleTradeUpdated(uint256 maxSingleTrade);State Variables
ISwap public hopPool; // Hop exchange pool contract
ERC20Burnable public hopLPToken; // Hop LP token contract
uint256 public maxSingleTrade; // Maximum size for a single trade
uint256 public minSingleTrade; // Minimum size for a single tradeFunctions
Initialization Functions
initialize
Configuration Functions
setMinSingleTrade
setMaxSingleTrade
View Functions
previewLiquidate
previewLiquidateExact
maxLiquidate
maxLiquidateExact
Core Internal Functions
_prepareReturn
_adjustPosition
_invest
_divest
Internal View Functions
_shareValue
_sharesForAmount
_shareBalance
_estimatedTotalAssets
Last updated