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

function _invest(uint256 amount, uint256 minOutputAfterInvestment) internal override returns (uint256)

Invests assets through multiple steps:

  1. Validates investment amount

  2. Adds liquidity to MAI-USDCe Curve pool

  3. Stakes LP tokens in Beefy vault

Parameters:

  • amount: Amount of USDCe to invest

  • minOutputAfterInvestment: 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