BaseConvexStrategyPolygon
Overview
Errors
error ConvexPoolShutdown(); // Convex pool has been shut down
error InvalidCoinIndex(); // Invalid coin index provided
error NotEnoughFundsToInvest(); // Insufficient funds for investment
error InvalidZeroAddress(); // Zero address provided
error CurveWithdrawAdminFeesFailed(); // Failed to withdraw admin fees
error InvalidHarvestedProfit(); // Invalid profit amount reported
error MinOutputAmountNotReached(); // Minimum output not achieved
error InvalidZeroAmount(); // Zero amount provided
error MinExpectedBalanceAfterSwapNotReached(); // Minimum balance not reached after swapEvents
event Invested(address indexed strategy, uint256 amountInvested);
event Divested(address indexed strategy, uint256 amountDivested);
event MaxSingleTradeUpdated(uint256 maxSingleTrade);
event MinSwapCrvUpdated(uint256 newMinSwapCrv);
event RouterUpdated(address newRouter);State Variables
Functions
View Functions
stakedBalance
previewLiquidate
previewLiquidateExact
maxLiquidate
maxLiquidateExact
Configuration Functions
setMaxSingleTrade
setMinSwapCrv
Core Internal Functions
_prepareReturn
_adjustPosition
_invest
_divest
Internal Helper Functions
_crvBalance
_stakedBalance
_lpValue
_lpForAmount
Abstract Functions
_lpPrice
_estimatedTotalAssets
_crv
_unwindRewards
Last updated