BaseSommelierStrategy
Overview
Errors
error NotEnoughFundsToInvest(); // Insufficient funds for investment
error CellarIsPaused(); // Sommelier Cellar is paused
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
ICellar public cellar; // Sommelier Cellar contract
uint256 public maxSingleTrade; // Maximum size for a single trade
uint256 public minSingleTrade; // Minimum size for a single tradeFunctions
Initialization Functions
initialize
Core Functions
liquidateExact
View Functions
previewLiquidate
previewLiquidateExact
maxLiquidate
maxLiquidateExact
Configuration Functions
setMinSingleTrade
setMaxSingleTrade
Internal Functions
_prepareReturn
_invest
_divest
Internal View Functions
_shareValue
_sharesForAmount
_shareBalance
_estimatedTotalAssets
Last updated