Install Dependencies

Learn how to interact with Morpho-Compound, on-chain via a Smart Contract & off-chain via ethers.js.

Installing dependencies allows developers to easily interact with Morpho, especially with the help of the Solidity interfaces from the open-source repository.

git submodule add https://github.com/morpho-dao/morpho-v1 lib/morpho-dao/morpho-v1
git submodule add https://github.com/morpho-dao/morpho-utils lib/morpho-dao/morpho-utils
git submodule add https://github.com/morpho-dao/morpho-tokenized-vaults lib/morpho-dao/morpho-tokenized-vaults

git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts lib/openzeppelin/contracts
git submodule add https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable lib/openzeppelin/contracts-upgradeable

If you're using forge, also add the following remapping to remappings.txt:

@morpho-dao/=lib/morpho-dao
@openzeppelin=lib/openzeppelin

Last updated

Logo

This documentation is provided by MorphoLabs, main contributor to Morpho DAO. For any question, reach out.