BaseYearnV3Strategy
Overview
Constants
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 MaxSingleTradeUpdated(uint256 maxSingleTrade);
event MinSingleTradeUpdated(uint256 minSingleTrade);State Variables
Functions
Initialization Functions
constructor
initialize
Core Functions
liquidateExact
Parameters:
Returns:
Configuration Functions
setMaxSingleTrade
setMinSingleTrade
View Functions
previewLiquidate
previewLiquidateExact
maxLiquidate
maxLiquidateExact
Internal Functions
_prepareReturn
_adjustPosition
_invest
_divest
_liquidatePosition
_liquidateAllPositions
Internal View Functions
_shareValue
_sharesForAmount
_shareBalance
_estimatedTotalAssets
_simulateHarvest
Last updated