> For the complete documentation index, see [llms.txt](https://devs.maxapy.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devs.maxapy.io/maxapy-erc4626/strategies/polygon-usdc.e/beefy/beefymaiusdcestrategy.md).

# 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

```solidity
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
