- Install dependencies
yarn install
- Configure your .env
SEPOLIA_RPC_URL=
PRIVATE_KEY=
ETHERSCAN_API_KEY= # if you want your contracts to be verified automatically
npx hardhat ignition deploy ./ignition/modules/CollateralToken.ts --network sepolia --verify
npx hardhat ignition deploy ./ignition/modules/CollateralToken.ts --network sepolia --verify
npx hardhat ignition deploy ./ignition/modules/CollateralToken.ts --network sepolia --verify
Creates a lending market with specified loan and collateral tokens.
npx hardhat run scripts/create-market.ts
Supply loan tokens to a Morpho market (includes token approval).
npx hardhat run scripts/supply.ts
Provide collateral tokens to secure borrowed positions.
npx hardhat run scripts/supply-collateral.ts
Borrow assets against supplied collateral.
npx hardhat run scripts/borrow.ts