ByAUJay
How to Build a Hybrid P2P/P2C Lending Protocol Like Mutuum
Creating a hybrid P2P/P2C lending protocol can sound pretty daunting, but you can totally do it with the right approach! This guide breaks down the steps and elements you’ll want to consider to get your own version live, much like Mutuum. Let’s dive in!
Understanding the Basics
Before you get started, it’s important to grasp what P2P (peer-to-peer) and P2C (peer-to-contract) lending is.
- P2P Lending: This connects borrowers directly with lenders, cutting out the middleman and allowing for more personalized terms.
- P2C Lending: Here, transactions happen through a contract, usually involving smart contracts on a blockchain, which automates the lending process.
Mixing these two models gives you a hybrid approach, which can increase flexibility and cater to different user needs.
Key Components of Your Protocol
Now, let's look at the essential components you’ll need for your lending protocol:
- Smart Contracts
You’ll want to build smart contracts to handle transactions automatically. This ensures everything runs smoothly and securely without constant oversight. - User Interface (UI)
A user-friendly UI is crucial for attracting users. Make sure it’s intuitive, offering easy navigation for both borrowers and lenders. - Credit Scoring System
An effective credit scoring system can help evaluate borrower risk. Consider integrating traditional score metrics along with innovative blockchain data analysis. - Governance Model
Establish a governance model that allows users to participate in decision-making about protocol changes or updates. It can include voting mechanisms using tokens. - Liquidity Pool
Setting up a liquidity pool allows lenders to fund multiple loans, enhancing their investment opportunities while providing borrowers with the funds they need.
Steps to Build Your Protocol
Step 1: Define Your Vision
What’s your mission? Identify the unique value your lending protocol will offer. Will it cater to a specific niche market, or focus on broader lending opportunities?
Step 2: Choose the Right Blockchain
Picking the right blockchain is key. Opt for one that supports smart contracts and has low transaction fees. Ethereum, Binance Smart Chain, and Solana are popular options.
Step 3: Develop Smart Contracts
Your smart contracts will handle lending agreements, interest rates, and payment schedules. Be thorough in testing them for security and functionality.
Step 4: Build the Frontend
Work on the UI to make it sleek and accessible. This is how users will interact with your protocol, so make it count!
Step 5: Launch a MVP (Minimum Viable Product)
Start with a basic version of your protocol to test the waters. Gather user feedback, identify any glitches, and fine-tune your features.
Step 6: Marketing
Once your MVP is live, it's time to market! Use social media, blogs, and crypto forums to raise awareness. Share your mission and the benefits of your protocol.
Step 7: Iterate and Improve
Take the feedback from your users and continuously improve your protocol. Adapt to trends in the market and stay ahead with innovative features.
Conclusion
Building a hybrid P2P/P2C lending protocol like Mutuum is an exciting journey! By understanding the basics, planning your components, and following these steps, you’re well on your way to creating something impactful. Keep your users at the heart of everything you do, and let your vision guide you. Good luck!
- Your backlog mentions “Ship dual markets,” but let’s face it--the blockers are pretty significant:
- The Oracle design situation is all over the place: pooled markets are looking for those “set-and-forget” feeds, while bespoke loans require that fresh execution-time data without making life harder for your keepers. Constantly pushing prices every block is just a waste; pulling the latest price only when it’s time to settle a loan or handle a liquidation is way safer and cheaper on L2s after Dencun. (docs.pyth.network)
- Rate curves take a dive under clustered stress: those linear models tend to spike APRs excessively, which can really kick off bank-run vibes in your P2C pools; plus, governance updates on parameters just can’t keep up with the traffic we’re expecting in 2026. Now, risk oracles that automatically adjust slope/kink based on realized volatility and liquidity are the way to go. (chaoslabs.xyz)
- Account UX is a bit of a churn factory: two-sided lending needs gas sponsorship and batch actions to be smooth; those old-school EOAs make it a hassle with collateral, borrowing, and oracle-refresh needing multiple signatures. The EIP-7702 + ERC-4337 combo can solve this issue, but you have to build in paymasters and session keys from the ground up. (blog.ethereum.org)
- Compliance is no longer something we can ignore: MiCA’s EMT/ART rules and ESMA’s enforcement deadlines coming in Q1 2025 are shaking up how stablecoin rails operate; also, the FATF has updated the Travel Rule (Rec. 16), making cross-border info sharing tighter than ever. Your treasury and fiat ramps need to align with this in terms of market design and asset listing. (coindesk.com)
- Missed roadmap milestones: Without a solid execution-time oracle path and a dynamic rate curve, developers end up launching “MVPs” that hit 90-100% utilization. This can lead to a bunch of liquidations piling up, causing your beta to stall out completely.
- Cost blowouts: If you're not paying attention to Dencun economics, you'll find yourself racking up calldata-level fees for price updates you never even used. Those rollup fees, which should really just be in the single-digit cents range, can explode well past your budget. But here’s the silver lining: after EIP-4844, blobs separate data fees and massively lower L2 costs--if you actually use them. (coinmarketcap.com)
- Compliance blockers at procurement: If you're working with EU partners, expect them to ask whether your choice of stablecoin complies with EMT/ART regulations, plus how your P2P market plans to handle Travel Rule messaging for originators and beneficiaries when off-ramping. ESMA guidance has put some serious restrictions on non-MiCA stablecoins that kick in by the end of Q1 2025; so if you're assuming USDT will work in Europe, be prepared to make some flow adjustments right in the middle of the quarter. (coindesk.com)
We create hybrid P2P/P2C protocols as a combined system, featuring clear modules and outcomes you can actually measure. Here’s a look at our usual 12-week plan:
1) Market Architecture: Dual-Rail Design
- P2C Pooled Markets (for the big players: ETH, WBTC, USDC):
- Pool Tokenization: Think of these as interest-generating receipts, kind of like mtTokens. They automatically accumulate and can be staked for fee-sharing if you want. Debt tokens track the liabilities for each reserve. Mutuum's roadmap is looking pretty similar with its V1 setup: pooled markets, mtTokens, debt tracking, and a liquidator bot slated for Sepolia pre-mainnet. We’re taking that idea but tightening up the risk management. (globenewswire.com)
- Asset Listing Framework: Here’s where we get a bit more creative. We’ve got Isolation Mode and Siloed/Supply-Only tiers specifically for those long-tail assets, which helps keep those pesky oracle manipulations at bay. Plus, we’ve taken cues from eMode-like categories for correlated assets to safely unlock higher Loan-to-Value (LTV) ratios (like stablecoin pairs). (aave.com)
- Interest Model: We’re going for a jump-rate model with a risk-oracle overlay. This means we’ve got a time-aware slope above the kink and some hysteresis to stop those annoying ping-pong rate swings. Backtests from providers like Chaos show this leads to smoother deleveraging and caps on rate spikes during stressful times. (governance.aave.com)
- P2P Bespoke Markets (for those niche or negotiated credits):
- Market Template: This is where we define a clean tuple: {loanAsset, collateralAsset, LLTV, oracleRef}. It’s a lot like Morpho Blue’s minimal isolated market setup. This not only ensures clear risk isolation but also allows for permissionless market creation without the risk of global contagion. (morpho.org)
- RFQ/Orderbook Loan Intent Flow: Picture a flow where quotes are time-boxed, and attestations are included. Fills can bundle actions like “update oracle → verify LLTV → fund loan” in one go, thanks to EIP-7702 batching.
2) Oracle and Liquidations: Getting It Right and Keeping Costs in Check
Oracles:
- P2C Pools: We’re using resilient push oracles like Chainlink Data Feeds for our reserves. There’s also an optional Risk Oracle sidefeed available if you want to fine-tune parameters.
- P2P Intents: With the Pyth pull-model, we can easily fetch and update prices during transactions. This helps us dodge stale reads and keeps griefing to a minimum. Plus, the typical cost for updates is pretty low on post-Dencun L2s. You can find more info here.
Liquidations:
- Dual Engine: We’ve got a quick path for pooled markets that works through keeper-driven Dutch auctions, alongside callback-enabled “one-tx” liquidations tailored for specific loans. Our minimalist market templates take cues from Morpho patterns, cutting down on complexity and enabling free flash liquidity thanks to a singleton design. Check out more on this GitHub page.
- LVR Coverage: We’re setting our LVR coverage targets and backstop vaults to cover XX% of pool borrows. We also have some optional backstop features available for institutional market makers.
3) Cross‑chain and Asset Movement
- Stick with CCIP v1.5+ CCT for any cross-chain tokenization or bridging you need to handle. This gives you a solid defense-in-depth message layer and a Token Developer Attestation for your mint/unlock processes. By doing this, you’ll cut down on custom bridge risks and make things way more auditable for your enterprise teams. Check out more details on it in this blog post.
- If you're into Superchain-style setups, good news! CCIP CCT is already working in real-world scenarios, like ASTR on Soneium, which is in sync with Optimism’s SuperchainERC20. This means you'll have a quicker route to accessing multi-L2 liquidity. Get the scoop here.
- For a diverse buy-side oracle strategy, keep both Pyth (pull) and Chainlink (push/CCIP) in mind, along with chain-specific routing.
4) Accounts, UX, and Ops (EIP‑7702 + ERC‑4337)
- Smart-account plan:
- We’re looking to leverage ERC‑4337 for bundling and paymasters, while EIP‑7702 allows EOA addresses to temporarily execute smart logic. This way, we won’t have to push everyone to migrate their wallets. Thanks to the activation of the Pectra mainnet on May 7, 2025, we can now implement this on a larger scale. Check out the details here.
- KPI: We want to streamline the process to make it as easy as a single click: batch deposit→approve→borrow→stake. Plus, we’re offering sponsored gas to help onboard new cohorts.
- Adoption reality check:
- The usage of 4337 shot up to millions of monthly UserOps from 2024 to 2026, mainly thanks to paymasters doing a lot of the heavy lifting. However, don’t expect smooth growth--the distribution is pretty uneven. Be prepared for some ups and downs, and make sure your funnels and budgets reflect that. You can find more on this here.
5) Compliance‑Ready Market Design
- Stablecoin Policy for EU Users: When targeting European liquidity or exchanges, it's best to stick with EMT/ART-compliant frameworks. The ESMA has recommended that CASPs should limit non‑MiCA tokens by the end of Q1 2025, offering a “sell‑only” grace period for these tokens. Make sure to design substitutes and keep users in the loop through in-app notifications. (coindesk.com)
- Travel Rule: Set up a messaging layer to gather and verify the data of both originators and beneficiaries (FATF Rec. 16). For peer-to-peer institutional markets, make sure to implement KYB. Also, consider allowing off-chain attestations or zk-credentials for added privacy when possible. (fatf-gafi.org)
- ZK Assurances: Think about integrating zero-knowledge proofs for solvency regarding your treasury and fee pools (like Proven-style proofs or your custom circuits). This can help lessen the burden of disclosure while building more trust among your users. (businesswire.com)
6) Security and Verification
- Before Deployment: We focus on fuzzing and testing different scenarios that target key profit avenues, like profitable reorderings, oracle staleness, and edge cases in LTV (Loan-to-Value) calculations. Research-grade tools, especially those built for profit-centric fuzzing, have proven to catch financially relevant bugs way better than your average generic fuzzers. You can dive deeper into this here.
- After Deployment: We keep a close watch on various metrics like utilization rates, how fresh our oracles are, liquidation debt coverage, and events related to bridged token attestations (specifically with our CCIP Token Developer Attestation). Check out more details on this topic in our post here.
- 7Block Labs has you covered with comprehensive lifecycle reviews and formal audits through our specialized security audit services.
System Blueprint -- Practical Specs We Implement
- Chain Targets:
- We're kicking things off on Base/OP Stack or Arbitrum to keep those L2 fees in check while tracking EIP‑4844 blob markets. You can expect budget swaps ranging from $0.05 to $0.40 post-Dencun when the blob market isn’t too crazy. (onchainstandard.com)
- Rate Model (per asset):
- Base rate sits at 0-1% for stablecoins and 0-2% for major assets.
- Kink comes in at 45-70% utilization, depending on how deep our liquidity goes.
- Our slopes are set at 5-8% for Slope1 and 150-300% for Slope2, with some risk-oracle tweaks during those sustained stress periods (think half-life decay after things normalize). (governance.aave.com)
- Collateral Policy:
- For stablecoins, we’re using an eMode to allow for a higher loan-to-value (LTV) ratio (like 90-97%) just within that category; outside of that, we're sticking to the standard LTV of 70-80%.
- We’ve also got Isolation Mode for those volatile/LRT/LST derivatives and a Siloed “supply-only” approach for assets with iffy oracles. (aave.com)
- Oracle Composition:
- When it comes to P2C majors, we’re rolling with Chainlink Data Feeds as our go-to. Pyth will step in when we need quick updates for things like liquidations and settlements.
- For P2P, we’re using Pyth’s pull-oracle flow to “update then execute” in a single transaction; if that update doesn’t go through, we’ll fallback to the last good price with some risk caps in place. (docs.pyth.network)
- Liquidation Design:
- We’re going with a Dutch auction model that includes keeper rebates. Plus, we have a callback interface to enable batched unwinds (flash-liquidity), taking inspiration from Morpho’s singleton pattern to cut down on calldata and minimize operational risk. (github.com)
- Cross-Chain:
- If you need to bridge pool tokens or receipts, be sure to wrap them as CCTs using CCIP v1.5. This approach will help us inherit that defense-in-depth, keep logs, and offer optional developer attestations across different chains. (blog.chain.link)
- UX:
- We’re implementing ERC‑4337 smart accounts with paymasters that cover first-time deposits. And thanks to EIP‑7702, existing EOAs can enjoy batch actions without needing to migrate--which is super important for keeping our current DeFi users happy after the Pectra shift. (blog.ethereum.org)
- If you're a Head of Credit & Treasury at a fintech or exchange looking to dive into on-chain lending in the EU/UK or US, you might want to keep these in mind:
- Some important terms include the MiCA EMT/ART authorization posture, the ESMA Q1‑2025 “sell‑only” transition, the FATF Rec. 16 Travel Rule payloads, and OFAC SDN screening. Also, don't forget about the CCIP CCT attestation logs, IFRS 9 ECL staging inputs, and managing VaR under blob fee volatility. You can check out more details over on CoinDesk.
- For Protocol PMs and DeFi leads juggling multiple markets, here are some key aspects to consider:
- Look into LLTV per market, adoption of eMode/Isolation Mode, and using Risk Oracles for slope control. Pyth pull-updates vs. Chainlink feeds and EIP‑7702 batching with ERC‑4337 paymasters are also crucial. Plus, keep an eye on Dencun blob economics for a better grasp on the landscape. You can get a deeper understanding in this Aave governance discussion.
GTM metrics you can forecast (and defend) in 2026
L2 economics after Dencun:
- Get ready for a major drop in data costs on L2s, thanks to blob transactions! We’re talking about a reduction of 75-90% compared to calldata, which means swaps could cost just a few cents on platforms like Base, Optimism, and zk rollups. This also means you could see a 60-80% cut in Customer Acquisition Costs (CAC) for newcomers diving into on-chain activities when paired with paymasters. (onchainstandard.com)
Smart-account conversion lift:
- With the 4337/7702 stack in play, there’s potential for millions of monthly UserOps, most of which will have paymaster support. This could lead to a conversion boost of 1.5-3.0x for moving from KYC to funded loans, especially with the whole ecosystem jumping on board. (theblockbeats.info)
Liquidity resilience:
- Thanks to risk-oracle-driven strategies, we’re looking at capped crisis APRs and a reduced need for forced deleveraging. The goals here? Keep insolvency rates below 0.25% during those wild top-decile volatility weeks, and aim for less than 15-minute Mean Time to Detection (MTTD) on any oracle staleness alerts. There’s solid evidence backing this from risk-oracle deployments across platforms like Aave, Pendle, and GMX. (chaoslabs.xyz)
Market traction benchmarks:
- In 2025, DeFi lending totally crushed it with TVL hitting record highs, and Aave v3 alone surpassed $26B! Hybrid models that mix pooled liquidity with tailored credit options--think Maple and the emerging “private credit” trend--are really catching the eye of institutional players. Make sure to toss these examples into your Board-level ROI discussions. (theblock.co)
Implementation Example -- A Clear Path Inspired by Mutuum’s Dual Markets
- Phase 0: Testnet Beta on Sepolia (6-8 weeks)
- Launch those P2C USDC/ETH pools along with a P2P template {USDC, wstETH, 80% LLTV, Pyth oracle}. Let’s make sure to include mtTokens and a liquidator bot since Mutuum V1 is all about that. Don’t forget to equip it with rate-oracle hooks and blob-aware gas tracking. (globenewswire.com)
- Phase 1: L2 Mainnet (Base/OP)
- Time to introduce Isolation Mode for LRTs! Let’s also get that stablecoin eMode up and running. If you really need to connect Base and OP, go ahead and wire in those CCIP CCT wrappers. And while we’re at it, integrating a 4337 paymaster will make onboarding a breeze. (aave.com)
- Phase 2: Institutionalization
- Here’s where things get serious: we’ll kick off permissioned P2P credit with Travel Rule payloads, add some KYB gating, and bring in zk-proof-of-solvency on those reserve pools. We’ll make sure daily proofs are published and totally verifiable. (fatf-gafi.org)
What We Deliver (and Where)
- Protocol and Product
- We craft essential contracts, markets, oracles, liquidations, and smart-account experiences as part of our smart contract development and custom blockchain development services.
- Cross-Chain and Integration
- Our offerings include CCIP CCT tokenization and enterprise middleware, all covered under our blockchain integration, cross-chain solutions, and bridge development.
- App Surfaces and Growth
- We build borrower/lender apps and dashboards through our web3 development services and dApp development. Plus, we support DeFi distribution via DEX development and DeFi development services.
- Security and Fundraising
- We handle threat modeling, audits, and ongoing monitoring with our security audit services. Looking for funding? We’ve got you covered with our fundraising support.
Emerging best practices you shouldn't overlook in Jan 2026
- Consider using EIP‑7702 to dodge those wallet migration headaches. Pair it with ERC‑4337 paymasters to handle those onboarding spikes that sync up with your marketing efforts. Check it out here.
- Go for pull-oracles when you're dealing with P2P settlements or liquidation paths. On the flip side, push-oracles are great for pooled health checks. And instead of stressing over calldata, make budgeting blob fees your priority. Learn more about it.
- It's a good idea to externalize your risk governance. By using market-level isolation, customizable LLTV, and rate curves managed by a Risk Oracle, you can trim down governance delays and boost your solvency when times get tough. Dive deeper here.
- When you're ready to ship, make sure you have verifiable assurances in place. Publishing zk‑proofs of solvency for your treasuries and insurance tranches can really help you gain the trust of banks and fintechs that prefer transparency over black-box reserve claims. Find out more.
- If you're planning to go multi-chain, standardizing on CCIP CCT is the way to go. This will help you cut down on bridge risks and open up those institutional custody routes that are already integrated with CCIP. Explore this further.
P2P “LLTV Market” Template (What We Deploy)
Parameters:
- loanAsset (ERC‑20)
- collateralAsset (ERC‑20)
- LLTV (e.g., 80%)
- oracleRef (Pyth feed ID)
- liquidation bonus (e.g., 7.5%)
- min health factor (e.g., 1.01 pooled, 1.05 P2P)
Loan Creation Sequence:
- Lender Posts Intent: This includes the amount, rate, tenor, and minimum collateralization requirements.
- Borrower Acceptance Transaction: This step kicks off with a pull-price call, followed by verifying the LLTV. Then, the borrower transfers the collateral, we fund the loan, mint a debt receipt, and if it’s a permissioned market, we emit the Travel-Rule metadata.
Liquidation Path:
- The Keeper keeps an eye on the health factor (HF); if it dips below 1, we handle a one-transaction liquidation. This includes pulling the price, seizing the collateral, and selling it via RFQ/Dutch. After that, we repay the loan and distribute any bonuses or fees. And if cross-chain settlement is switched on, auction books receive CCIP-verified CCT tokens. Check out more about this in the blog.chain.link.
Why Now -- The Market Context is Just Right
- After the updates from Dencun and Pectra, we’re finally seeing lower fees and less hassle when it comes to frequent price updates, batched credit flows, and even gas-sponsored onboarding on a larger scale. Ethereum’s EIP-4844 blob market really cut down on L2 costs, and thanks to Pectra’s EIP-7702, smart functionality is accessible for those legacy EOAs. When you combine this with CCIP CCT for cross-chain distribution, we’re looking at enterprise-level frameworks that weren’t even possible a year and a half ago. (coinmarketcap.com)
- We’re also seeing dual-market structures becoming the new norm. Mutuum showcased a cool pooled + P2P approach using mt/debt tokens and a liquidator bot, while Morpho Blue brought attention to minimal isolated markets (LLTV/oracle-scoped) that scale smoothly. It’s all about building on these composable elements--embrace them instead of resisting! (globenewswire.com)
Personalized CTA
Hey there!
If you’re leading the Product or Credit team at an EU-facing exchange or fintech and you’re on the lookout for a compliant hybrid P2P/P2C lending MVP on Base--complete with CCIP CCT bridging, Pyth pull-oracles for P2P settlement, EIP-7702/4337 smart-account UX, and MiCA-ready stablecoin rails--let's chat!
Book a 45-minute architecture review with our core protocol team before Friday, February 14, 2026. We’ll come ready with a working Sepolia demo set up with your asset list, a draft for the rate-oracle policy, and a procurement-grade SOW. Just shoot us an email with the subject line “Hybrid Lending -- make LLTV real.” We can’t wait to get started!
Like what you're reading? Let's build together.
Get a free 30-minute consultation with our engineering team.
Related Posts
ByAUJay
Building a Donation-Based Crowdfunding Platform That Gives Tax Receipts
**Summary:** Donation-based crowdfunding that includes tax receipts has become quite the complex puzzle across different regions. You've got to navigate IRS Pub 1771/526 rules, UK Gift Aid declarations, Canada’s CRA receipting, and the new eIDAS/OpenID4VCI wallets--all while keeping everything running smoothly.
ByAUJay
Why 'Full-Lifecycle Advisory' Beats Just Coding
**Summary:** Engineering teams that focus solely on “writing Solidity” often find themselves caught off guard by shifts in protocols, the need for composable security, and the procurement hurdles that are now impacting real ROI. Our full-lifecycle advisory service bridges the gap by connecting EIP-7702 smart accounts, modular decentralized applications (DA), and ZK-based compliance solutions.
ByAUJay
Why Your Project Could Really Use a 'Protocol Economist
Summary: A lot of Web3 teams are missing a crucial player: the “protocol economist.” And you can really see the impact--value slips away through MEV routing, token incentives that are all out of whack, and those sneaky changes to wallets after Pectra that end up messing with the unit economics. In this playbook, we’ll explore what a protocol economist can do to tackle these issues head-on.

