Skip to content

ERC4626 & Morpho Strategies

This section covers the base ERC-4626 wrapping strategy and the Morpho-specific extension.

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 Redeems all external vault shares to receiver.
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.