BaseYearnV2Strategy
Overview
Constants
uint256 internal constant DEGRADATION_COEFFICIENT = 10 ** 18; // Coefficient for profit unlockingErrors
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
Functions
Initialization Functions
initialize
Configuration Functions
setMinSingleTrade
setMaxSingleTrade
View Functions
previewLiquidate
previewLiquidateExact
maxLiquidate
maxLiquidateExact
Internal Functions
_invest
_divest
Internal View Functions
_shareValue
_sharesForAmount
_freeFunds
_calculateLockedProfit
_shareBalance
_estimatedTotalAssets
Last updated