Skip to content

On-chain mortgage protocol with better rates through decentralized liquidity pools - Built with Scaffold-ETH 2

License

Notifications You must be signed in to change notification settings

LeviJesus/mortpool

Repository files navigation

🏠 Mortpool - On-Chain Mortgage Protocol

💰 Access competitive mortgage rates through decentralized liquidity pools - worldwide.

Mortpool connects borrowers directly with liquidity providers, eliminating traditional banking overhead. Market-driven rates typically 30-50% lower than local banks globally, with competitive yields for LPs backed by real-world assets.

⚙️ Built using Scaffold-ETH 2: NextJS, RainbowKit, Hardhat, Wagmi, Viem, and Typescript.

✨ Features

  • 🏡 Tokenized Properties - Real estate as NFTs with on-chain ownership tracking

  • 💵 Globally Competitive Rates - Market-driven pricing, typically 30-50% lower than local banks worldwide

  • 📈 Earn Yield - LPs earn sustainable returns on real-world assets (50-70% of borrower rates)

  • 📊 Incremental Ownership - Watch your ownership % grow with each payment

  • 🔒 Insurance Pool - 2% reserve protects against defaults across all markets

  • Instant Approval - Smart contract automation without geographic restrictions

  • 🎯 Transparent - All terms and rate calculations visible on-chain

  • 🌍 Global Accessibility - Serve borrowers in any country, from São Paulo to Mumbai

  • Contract Hot Reload: Your frontend auto-adapts to your smart contract as you edit it.

  • 🪝 Custom hooks: Collection of React hooks wrapper around wagmi to simplify interactions with smart contracts with typescript autocompletion.

  • 🧱 Components: Collection of common web3 components to quickly build your frontend.

  • 🔥 Burner Wallet & Local Faucet: Quickly test your application with a burner wallet and local faucet.

  • 🔐 Integration with Wallet Providers: Connect to different wallet providers and interact with the Ethereum network.

Requirements

Before you begin, you need to install the following tools:

Quickstart

  1. Clone and install dependencies:
git clone https://github.com/yourusername/mortpool.git
cd mortpool
yarn install
  1. Start local blockchain:
yarn chain
  1. Deploy contracts (in new terminal):
yarn deploy
  1. Start the frontend (in new terminal):
yarn start
  1. Open your browser to:
http://localhost:3000

📖 How It Works

For Borrowers:

  1. Browse available tokenized properties
  2. Apply for a mortgage with 10-20% down payment
  3. Get instant approval from smart contracts
  4. Make monthly payments and track ownership growth
  5. Own 100% of your property when paid off

For Liquidity Providers:

  1. Deposit ETH into the liquidity pool
  2. Earn 3.5% APY from mortgage interest
  3. Withdraw anytime (subject to liquidity)
  4. Protected by 2% insurance reserve

🏗️ Smart Contracts

  • PropertyNFT.sol - ERC-721 tokens representing real estate
  • MortgagePool.sol - Liquidity pool for lenders with yield distribution
  • MortgageManager.sol - Mortgage lifecycle management (applications, payments, defaults)

📚 Documentation

  • Edit smart contracts in packages/hardhat/contracts
  • Edit frontend in packages/nextjs/app
  • Deploy scripts in packages/hardhat/deploy

For more on Scaffold-ETH 2, visit docs.scaffoldeth.io

🚀 Future Vision

While Mortpool currently focuses on real estate mortgages, the underlying architecture is designed to scale to any high-value asset class:

  • Vehicles & Equipment - Cars, boats, heavy machinery with monthly payment plans
  • Luxury Assets - Watches, art, collectibles with fractional financing
  • Business Assets - Commercial equipment, inventory financing
  • Digital Assets - Domain names, NFT collections, intellectual property

The core mechanics of tokenization, liquidity pooling, incremental ownership tracking, and insurance reserves can be adapted to create lending markets for any asset type. This makes Mortpool a foundation for a broader decentralized financing ecosystem beyond traditional real estate.

🤝 Contributing

Contributions welcome! Please check CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE file for details


Built with ❤️ using Scaffold-ETH 2

About

On-chain mortgage protocol with better rates through decentralized liquidity pools - Built with Scaffold-ETH 2

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published