BaseBeefyStrategy
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
IBeefyVault public beefyVault; // Beefy vault contract reference
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
Internal Functions
_prepareReturn
_adjustPosition
_invest
_divest
_liquidatePosition
Internal View Functions
_shareValue
_sharesForAmount
_shareBalance
_estimatedTotalAssets
Last updated