BeefyMaiUSDCeStrategy
Overview
The BeefyMaiUSDCeStrategy contract is a strategy that supplies USDCe into the MAI-USDCe Curve pool and stakes the LP tokens in a Beefy Vault to earn yield. It inherits from BaseBeefyCurveStrategy and provides custom implementation for investment logic.
Constants
No additional constants defined in this contract.
State Variables
No additional state variables beyond those inherited from BaseBeefyCurveStrategy.
Functions
Internal Core Functions
_invest
Invests assets through multiple steps:
Validates investment amount
Adds liquidity to MAI-USDCe Curve pool
Stakes LP tokens in Beefy vault
Parameters:
amount
: Amount of USDCe to investminOutputAfterInvestment
: Minimum expected Beefy vault shares
Returns:
Amount of Beefy vault shares received
Key Features:
Uses Curve's add_liquidity function with USDCe
Enforces maximum single trade limit
Verifies minimum output requirements
Tracks share balances before/after deposit
Emits investment events
Last updated