ERC4626 & Morpho Strategies
This section covers the V2 ERC-4626 wrapping strategy and its Morpho extension. Aave GHO Saving uses a distinct USDC-to-GHO-to-sGHO route, not a direct deposit into the generic target vault described here. Neither should be confused with per-user GHO Staking.
Before integration or administration, verify the listed signatures and permissions against the deployed implementation and its verified source. See Documentation scope and verification.
External share value and immediately withdrawable liquidity are different quantities. Withdrawal and exit remain subject to the target vault's limits and available liquidity.
ERC4626Strategy
Source: src/strategies/ERC4626Strategy.sol
| Function | Access | Description |
|---|---|---|
receiver() |
public view | Returns vault address receiving divested assets. |
asset() |
public view | Returns underlying asset. |
totalAssets() |
public view | Converts held external vault shares to assets through previewRedeem. |
invest(uint256 amount) |
Keeper | Deposits underlying asset into target ERC-4626 vault. |
divest(uint256 amount) |
Keeper | Redeems enough external vault shares to withdraw requested assets. |
exit(bool ignore) |
Keeper | Attempts to redeem all external vault shares to receiver, subject to the target vault's withdrawal conditions. |
harvest(IERC20 asset_) |
Keeper | Sweeps non-target-vault token to receiver. |
replenish(uint256 amount) |
Keeper | Withdraws requested assets to receiver. |
MorphoStrategy
Source: src/strategies/MorphoStrategy.sol
MorphoStrategy inherits every function from ERC4626Strategy and adds the ability to claim Morpho rewards through the Universal Rewards Distributor.
| Function | Access | Description |
|---|---|---|
claimRewards(address reward, uint256 claimable, bytes32[] memory proof) |
Keeper | Calls Morpho Universal Rewards Distributor to claim reward token for this strategy. |