Write a Lending Protocol in Just One Afternoon: Which Three Moats Will Enable DeFi to Make Real Money in the AI Era?
In this latest essay published by Multicoin, author Spencer Applebaum breaks down how value is being restructured in DeFi as software approaches zero marginal cost: when technical implementation is no longer scarce, real pricing power belongs to participants who control three core moats—user distribution, proprietary risk capital, and non-public proprietary data.

Five years ago, building a DEX or lending protocol meant raising $3 million, hiring five engineers, and spending six months to produce a minimum viable product. Today, a founder can use Claude Code to assemble most of the framework in a single weekend.
Ask a frontier AI model to build a perpetual futures exchange, and it can generate the matching engine, risk engine, trading interface, APIs, and most other core components almost out of the box.
AI is lowering the barriers to competition across nearly every software vertical, but financial services will be among the businesses most resistant to commoditization. That is because the most valuable parts of a financial firm have little to do with the software itself.
Building a loyal customer base, accumulating a large balance sheet, and refining proprietary data and underwriting capabilities all require years of relationship-building, a proven track record, and earned trust. AI can dramatically reduce the cost of building software, but it cannot make these capabilities easier to replicate.
In other words, a large language model can write the code for a lending protocol in an afternoon. But it cannot conjure up the $10 billion in stablecoin deposits flowing into the protocol, nor can it bring 28 million customers to a new online brokerage.
We believe this is extremely bullish for DeFi. Over the next decade, trillions of dollars of financial activity will migrate on-chain. AI will significantly reduce the cost of building products to serve that activity, but the core factors that make financial businesses valuable and defensible will not become any easier to reproduce.
New Pillars of the DeFi Value-Capture Framework
For years, we have been thinking about value capture in DeFi, and our views have evolved as the market has matured. Early on, we studied how application tokens could capture value through Work Tokens and the burn-and-mint equilibrium (BME) model.
Later, we focused on DeFi’s defensibility and Unforkable State, arguing that anyone can fork open-source code but cannot replicate liquidity or network effects.
More recently, we argued that DeFi protocols capture the most value when they are required to manage some form of substantive risk. These arguments have all been validated to some extent, and this essay represents the next iteration of our thinking.
Let us begin by stating the central premise of this entire essay: we believe DeFi will continue to absorb CeFi and ultimately the traditional financial system as a whole. DEX spot-market share relative to CEXs is currently at an all-time high and continues to rise:

Figure: DEX spot trading volume as a share of CEX trading volume, recently rising to 24% (Source: The Block, DefiLlama)
At the same time, we are seeing real adoption of tokenized assets across U.S. Treasuries, private credit, equities, and more. More importantly, growth is no longer being driven solely by crypto-native users.
Incumbents across traditional industries, fintech companies, institutional asset managers, and traditional brokerages are all building products on-chain and bringing their existing customers into the on-chain world.

Figure: Composition and growth of tokenized real-world assets (RWA) on-chain (Source: rwa.xyz)
But the key question is whether today’s blue-chip DeFi protocols will automatically capture this wave of growth. As the cost of software and data analysis falls, value will flow to those who control the “scarce resources that software cannot create.”
We believe DeFi has three core moats: distribution, capital, and proprietary data. There is also a fourth factor—risk tolerance—which works differently. It is more like a wedge for entering a market, and we will discuss it at the end of the essay.
The First Moat: Distribution
One of the most influential theories in the early crypto industry was Joel Monegro’s “Fat Protocols,” written in 2016. The theory held that the internet left enormous value at the application layer—Google, Facebook, Amazon, and so on—while blockchains would reverse that relationship, allowing most value to accrue at the underlying protocol layer.
Reality points in the opposite direction, and the trend is accelerating. As the cost of deploying protocols falls, value is flowing toward whoever controls the customer relationship. These businesses can direct users and account balances to whichever underlying venue offers the highest rebates. Sometimes that business is an independent application; other times, as with Hyperliquid, it is both a blockchain and an application.
Our definition of distribution is simple: the ability to control where order flow or capital balances go. But not all distribution has the same degree of customer stickiness. Hard-to-migrate, verified funding accounts can create a genuine moat, while a standalone frontend is more vulnerable to competition, as we discuss below.
Exchanges and Other Stablecoin Distributors
The clearest demonstration of pricing power in the distribution channel appears in the stablecoin value chain. Once a stablecoin issuer achieves scale and interest rates are not close to zero, stablecoin issuance has historically been an excellent business. Tether and Circle hold dollar reserves and earn interest, while generally sharing almost none of it with holders.
Since 2021, Tether alone has generated more than $20 billion in interest income through this model, with margins close to 100%:

Figure: Tether’s cumulative revenue from May 2021 to October 2026, totaling $20.2 billion (Source: DefiLlama)
By contrast, more than $6 billion of USDC is held on Hyperliquid as derivatives margin. These retained balances generate substantial reserve interest income for Circle and its distribution partners.
At a certain point, Hyperliquid recognized that it was the fundamental reason these balances existed, giving it negotiating leverage: if Circle was unwilling to share the revenue, Hyperliquid could simply replace USDC with a stablecoin willing to share the economics—or, in theory, issue its own stablecoin.
Earlier this year, Hyperliquid reached a partnership agreement with Coinbase based on its Aligned Quote Asset (AQA) framework.
Under the agreement, approximately 90% of the yield on USDC reserves on Hyperliquid no longer accrues to Circle or Coinbase. Instead, it flows to the protocol’s Assistance Fund and is used to buy back HYPE.
Based on the $5.5 billion in USDC representing that 90% share of the treasury, this arrangement now generates approximately $185 million in annual revenue for Hyperliquid.
Hyperliquid does not need to maintain its own minting and redemption rails, manage treasury funds, or obtain regulatory licenses. It controls the distribution gateway, and that alone is enough to demand a larger share of the economics.
Wallets and Frontend Gateways
The other side of the coin can be seen in wallets and frontend applications. Early non-custodial wallets struggled to monetize until they realized that trading was, in fact, the crypto industry’s most lucrative business—and elevated it to a core product several years ago.
Today, MetaMask charges fees as high as 0.875% on swaps, while Uniswap’s average trading fee over the past 12 months was only 0.13%, most of which is paid to liquidity providers (LPs) rather than the Uniswap protocol itself.
In short, wallets earn far more than the venues that match and execute trades. Underlying exchanges must continually attract LPs, maintain complex infrastructure, and compete on execution slippage. MetaMask only needs to win and retain the customer relationship. If one DEX offers poor pricing, MetaMask can redirect the order elsewhere at any time.
Over the long term, once wallets and frontends control enough order flow, they may even internalize and match a large share of trades, capturing an even greater portion of the economics.
A similar dynamic is beginning to emerge in perpetual futures. Phantom allows users to trade perpetuals on Hyperliquid and charges an additional 5 basis points on top of Hyperliquid’s native 4.5-basis-point fee.
Hyperliquid bears the burden of the risk engine, matching, and liquidity, while Phantom earns a larger share simply by controlling the interface and the users.
However, this model also has limits. In the Hyperliquid Builders ecosystem, which has now become a new red-ocean market, a price war is already under way, with teams cutting fees to retain users. In other words, the frontend layer is not immune to commoditization either.
More broadly, crypto wallets are relatively fragile because users face extremely low switching costs. By importing a private key or seed phrase into another wallet, users can seamlessly take control of the same assets through a new interface within minutes.
By contrast, switching banks or fintech applications is far more cumbersome: users must open a new account, complete KYC, transfer funds through traditional clearing channels, reconnect their payroll account, and update all associated services.
Fintech Companies and Digital Banks
Consider Robinhood, a fintech giant with 28 million funded accounts. Uniswap is still the primary DEX on Robinhood Chain, and Robinhood is happy with that arrangement for now.
But as AI continues to drive down the cost of developing financial software, nothing prevents Robinhood from building and launching its own proprietary DEX protocol and directing traffic there. With its enormous reach and access to top-tier AI coding tools, it could almost overnight launch one of the largest Layer 2 DEXs in DeFi.
We are not saying Robinhood will definitely do this. After all, directly making markets and holding liquidity has historically not been a core priority for Robinhood. (That said, it has begun directing a large volume of prediction orders to its own prediction market, Rothera, rather than Kalshi.)
Our point is simply that writing protocol code is no longer difficult; acquiring users, capital, and proprietary data is.
A clear “waterfall value chain” is emerging in DeFi. Frontends such as Phantom are taking a larger share from trading venues, while trading venues such as Hyperliquid are reclaiming revenue from stablecoin issuers such as Circle. At every layer, businesses that control distribution have pricing power over the infrastructure beneath them.
How much profit each layer ultimately retains comes down to how difficult it is for users to leave. Hyperliquid captures approximately 90% of reserve yield, while frontend applications built on top of it are already being forced to cut their additional fees to just a few basis points.
The Second Moat: Capital
The natural conclusion from the previous section seems to be that headless protocols and backend infrastructure are at a clear disadvantage. In some cases, that is true. But beyond distribution, other moats exist, and the most important is capital.
Capital is the lifeblood of financial markets. Traders need capital to use leverage, market makers need capital to quote continuously, and lending protocols need deposits in order to lend. AI can help write code and automate workflows, but it cannot conjure money out of thin air. When something goes wrong—such as the Aave KelpDAO incident or MakerDAO’s Black Thursday—someone must step forward and absorb the loss.
Before going further, let us discuss liquidity. Liquidity does exhibit a logarithmic (log(n)) network effect: traders move toward liquidity, and liquidity in turn follows traders. Hyperliquid’s open interest is certainly a major advantage, but that capital belongs to users, who can withdraw it and move elsewhere at any time.
We have repeatedly seen liquidity migrate across DeFi protocols in response to token incentives and vampire attacks. Once the incentives dry up, however, large amounts of liquidity often leave as well. The following two forms of capital are the moats that can truly create durable defensive barriers.
DeFi Prime Brokerage
Prime brokers (PBs) are critical participants in traditional financial markets. They provide leverage and trading finance, allowing hedge funds to use a shared pool of capital across different markets and strategies instead of locking up margin separately at each venue.
This is an enormous business. Benefiting from the expansion of the hedge fund industry and highly financing-dependent multi-strategy hedge funds (Pod Shops), total industry PB revenue rose from approximately $15 billion in 2020 to approximately $27 billion in 2024.
We believe this opportunity will be even larger in DeFi. Traditional prime brokers primarily serve large institutions because the operating costs of servicing smaller clients are too high. Smart contracts can automate most of the process, allowing everyone from retail traders executing $500 trades to Millennium research teams managing positions worth hundreds of millions of dollars to use a unified margin service.
Today, traders typically have to post separate margin on Hyperliquid, Aave, Lighter, Morpho, Variational, and Kamino. This is extremely inefficient from a capital perspective, and the problem will only worsen as tokenized equities, U.S. Treasuries, private credit, and other RWAs move on-chain.
If a fund goes long tokenized equities on one venue while shorting an equity-index perpetual on another, it should not be forced to post the full amount of margin on both positions when some of the risks offset one another.
Developing and managing the software for this logic is becoming increasingly easy. The real challenges are having a balance sheet large enough to finance positions, securing a low cost of capital, and possessing the risk-management experience needed to avoid liquidations and insolvency. A prime broker with cheaper funding can offer better financing terms, attract more customers, and then obtain even cheaper capital through scale, creating powerful economies of scale.
Backstopping DeFi Protocol Risk
The second way capital can create a moat is by backstopping protocol risk. This follows directly from our earlier discussion of DAO risk management: we argued then that protocol tokens which do not manage risk themselves are more vulnerable to being replaced by forks than those that actively manage risk.
Consider Hyperliquid’s HLP vault. It provides liquidity by making markets and taking over liquidated positions; depositors share in profits while also bearing the risk of losses. HLP lost approximately $4 million while handling the liquidation of a large ETH position in March 2025, and the subsequent JELLYJELLY incident put further pressure on its exposure.
Both incidents underscored the importance of insurance funds for derivatives DEXs. Aave’s Umbrella mechanism plays a similar role, allowing users to earn additional yield by taking on bad-debt risk.
Anyone can fork the smart-contract code behind HLP or Umbrella, but they cannot fork the real money locked inside them. There are, of course, concerns: these are third-party funds, and depositors may withdraw and leave whenever higher yields become available elsewhere.
Conversely, some capital is sticky because tokenholders and vault depositors substantially overlap. For example, HYPE holders may deliberately keep a portion of their dollar assets in HLP to strengthen the exchange’s security and protect their own token exposure.
The most durable end state for this strategy is for a protocol to use retained earnings to build its own balance sheet. This proprietary capital will not flee simply because another platform offers higher short-term yields or points programs.
Binance’s recent response demonstrates the importance of a proprietary balance sheet. After suffering a $6.3 billion hacking theft on October 29, Binance used its SAFU reserves and corporate funds—primarily the latter—to fully cover the shortfall. It resumed withdrawals within days, and ultimately saw only 3% net outflows.
Although the situation is still in its early stages, the market’s trust in Binance’s strong balance sheet clearly helped prevent a bank run.
As DeFi expands further into private credit, tokenized equities, and other RWA assets, demand for insurance capital and risk capital will only increase. The ultimate result will be that protocols that actually provide and manage capital capture far more value than pure software providers.
The Third Moat: Proprietary Data
The third moat is information and data, but it comes with an important qualification. DeFi has historically been built on the premise that financial data should be open and transparent, which works extremely well for overcollateralized crypto lending and spot trading. But as more RWA assets move on-chain, more business models will be built around “non-public information.”
The real moat lies in the combination of “proprietary, non-public data” and “the ability to price risk and underwrite based on that data.”
Credit Curators
This distinction is becoming visible first in lending. Today, risk curators managing capital on behalf of depositors across platforms such as Morpho, Kamino, and Euler oversee $9.5 billion in assets:

Figure: Assets managed by DeFi risk curators, currently totaling $9.5 billion (Source: DefiLlama)
These risk curators receive limited permissions in vault smart contracts to allocate capital across lending markets, set risk parameters, and monitor collateral positions. Yet despite collectively managing $9.5 billion in assets, they generate very little revenue, especially compared with traditional asset managers that have greater discretion and responsibility.
In fact, many curators charge almost nothing. Steakhouse Financial, the largest DeFi risk curator by assets under management, charges an overall fee of just 22 basis points on the assets it manages, while the average fee charged by risk curators across the industry is only 19 basis points.
One reason is that risk-adjusted yields in DeFi are currently not particularly attractive, partly because of the large amount of idle capital sitting in Aave. Another is that Morpho and Kamino have commoditized the vault layer and inserted themselves between curators and depositors, once again validating our earlier argument about distribution.
But the more fundamental issue is that most risk curators use the same pool of public data. If you are managing lending backed by ETH or BTC, the prices, liquidation rules, and collateral are all visible to everyone. AI makes it easy to replicate risk models, ultimately forcing curators to compete on individual risk judgments and track records—something that will inevitably compress management fees over time.
By contrast, consider protocols such as OnRe. It is an on-chain reinsurance company that raises capital from investors and uses it to underwrite real-world insurance risks. To do so, it must have access to historical claims records, loss probabilities, and the specific language of insurance contracts. It also needs professional actuaries who can interpret that data.
None of this information can be found on a block explorer. No matter how intelligent a frontier model may be, without access to internal reinsurance books, it simply cannot calculate underwriting prices.
That is why OnRe can charge a 75-basis-point management fee plus a 20% performance fee. Based on current returns, its annualized fee rate is approximately 3%—16 times the average fee charged by DeFi risk curators.
These are, of course, businesses with completely different characteristics and risk profiles, and part of the fee premium compensates for illiquidity and the risk of principal loss. But this also confirms our core thesis: businesses with proprietary data, underwriting expertise, and customer relationships can command much higher prices. If all you have is the same public data and tools as everyone else, the end result is usually commoditization.
What Does This Mean for Value Capture?
Following this analytical framework, an obvious question arises: if DeFi undergoes large-scale expansion over the long term, who is best positioned to capture the upside, and who will find monetization more difficult?
Blockchain Infrastructure (L1s and L2s)
One somewhat harsh interpretation is that infrastructure tokens such as L1s and L2s currently face a difficult environment. In the past, public blockchains effectively gave new DeFi applications the two moats of “distribution” and “capital.” That advantage is now fading.
Historically, blockchains controlled distribution because users tended to keep their assets on the most active chain. Building on Ethereum meant access to Ethereum users; building on Solana meant access to Solana users. When launching Uniswap, Compound, Aave, Kamino, or MakerDAO from scratch, starting within the ecosystem where users were concentrated was critical.
But advances in cross-chain interoperability are weakening this connection. Today, a fomo user only needs to open an account through a mobile app to trade any asset across chains without caring which chain sits underneath.
Increasingly, new users will enter DeFi through Revolut, Nubank, and Robinhood. These giants already have tens of millions of users and do not require customers to manage their own wallets.
In the past, L1s also supplied capital through the wealth effect of their ecosystems. When SOL or ETH appreciated, users had more capital available to invest on-chain, while cross-chain friction and a sense of tribal belonging kept that capital in the ecosystem.
Today, however, cross-chain movement is becoming increasingly seamless. New capital is entering directly through stablecoins, tokenized assets, and institutions, while RWA issuers such as Securitize, Superstate, and Ondo prefer to deploy across multiple major chains.
As for data, public blockchains have almost never built a moat. Most on-chain financial information was public across the entire network from the start, leaving blockchains and ordinary applications without defensible proprietary data.
AI is even eroding another traditional advantage of blockchains: developer ecosystems. One of Ethereum’s historical advantages over newer chains such as Solana and Aptos was its mature tooling, repeatedly audited codebases, and extensive integration ecosystem. But when AI can easily port and rebuild applications across different virtual machines, the importance of that advantage declines substantially.
At a higher level, general-purpose blockchains are losing their former distribution and capital advantages while lacking data moats to begin with. Ultimately, this leaves them competing primarily on execution and settlement efficiency. Given the abundance of blockspace, per-transaction fees continue to fall.
But this absolutely does not mean public blockchains cannot be highly valuable. As Tushar explained years ago in a summit presentation, L1 tokens combine the properties of capital assets, commodities, and stores of value. Even at just one cent per transaction, if Solana ultimately processes 1 billion payments per day, annual fee revenue would still reach $3.65 billion.
As the following data shows, the volume of on-chain transaction processing continues to rise:

Figure: Daily transaction count on Solana, reaching 162 million in 2026 (Source: Blockworks Research)
The real takeaway is that the fundamental logic behind the value of public blockchains in the future may look very different from what investors initially imagined.
Application and Protocol Layers
For applications and protocols, the winners that ultimately capture the most value will necessarily control at least one of the three core moats: a distribution moat built on difficult-to-migrate direct customer relationships, as with Robinhood or Hyperliquid; a capital moat built on a balance sheet capable of absorbing losses; or a proprietary-data moat based on underwriting capabilities that others cannot match.
No matter how powerful AI models become, all three are far more difficult to replicate than software itself.
As for whether value ultimately accrues to corporate equity or protocol tokens, we do not believe this determines the winner. Both will share in the upside. Recent SEC guidance and proposed rules have begun to outline a path for compliant value capture through tokens, and we will continue to pursue opportunities in this area.
There is only one truly important criterion: whether a business—regardless of whether it is wrapped in the form of a token or equity—controls scarce resources, therefore possesses pricing power, and can convert that advantage into returns for investors.
As more financial activity moves on-chain, the valuation and profitability gap between protocols with real, defensible moats and protocols that consist of “nothing but a pile of software code” will widen. As one of the largest investors in the sector, we are devoting significant effort to identifying which projects across the full stack truly possess and can defend these moats.
Isn’t This All an Advantage for Traditional Incumbents?
Following the analysis above, it is natural to conclude that established giants have an unbeatable advantage. Robinhood controls a massive customer base, Goldman Sachs likely has a stronger balance sheet than any DeFi prime broker, and Moody’s possesses deep data and an authoritative license.
If software approaches zero cost while moats remain expensive to build, then large companies that already possess those moats should have an overwhelming head start.
But startups still hold one trump card: the willingness to take risks that large incumbents will not. AI is a double-edged sword here. It can enable Robinhood to build a DEX in a weekend, but it can also give a three-person startup the same development velocity.
As the cost of building reliable products falls sharply, the historic opportunity for startups lies in boldly entering underserved markets and customer segments that traditional giants are unwilling to touch for various reasons. Several highly compelling examples have already emerged.
Ethena built a synthetic dollar around delta-neutral hedging. Basis trading is not a mystery to Wall Street institutions, but traditional firms were unable or unwilling to bring it to crypto exchanges because of regulatory and internal constraints. Ethena used that opening to grow its assets under management to $5.4 billion.
Pump.fun and fomo started with almost nothing, created entirely new trading experiences around the emerging Memecoin asset class, and quickly established enormous distribution gateways, becoming two of the most prominent winners of this crypto cycle.
Hyperliquid entered the derivatives market, previously dominated by Binance, Bybit, and OKX, and rapidly captured market share. It also launched pre-market perpetuals for unlisted technology giants such as OpenAI and Anthropic—products that traditional licensed exchanges would never touch.
These markets continually attract new traders and incremental liquidity. For example, the following data shows an explosive increase in the number of newly created wallets on Hyperliquid on the day of the SpaceX IPO:

Figure: New wallets created on Hyperliquid each day from May 16 to June 14, 2026; the number exceeded 40,000 on the day of the SpaceX IPO (Source: HyperTracker)
In the capital moat, Project 0 provides financing against DeFi collateral that traditional prime brokers are unwilling to touch. In the proprietary-data moat, USD.ai underwrites and prices loans secured by GPU computing hardware, a category of novel assets about which traditional banks have almost no experience.
The common thread running through these success stories is that they entered niches that giants had deliberately left open because of regulatory constraints, operational complexity, reputational concerns, or the perception that the initial market was too small. History suggests that more such asymmetric points of entry will continue to emerge.
This is the deeper reason why the intersection of AI and DeFi is so exciting: AI dramatically reduces the manufacturing cost of financial products, while DeFi allows startup teams to reach global customers and mobilize capital without rebuilding the entire traditional financial stack from scratch.
Of course, high risk tolerance alone is not a durable moat. Over time, regulators will catch up, and once an emerging market is validated, established giants will eventually enter in force—as happened in the spot Bitcoin ETF market.
But startups do not need to possess a complete moat on day one. They only need an opening that a giant is unwilling to pursue, and then must use the window of opportunity to turn it into one or more of the three moats described above. From there, they can begin compounding and scaling like a snowball.
Conclusion
We firmly believe that trillions of dollars in financial activity will move on-chain over the next decade, while AI will reduce the cost of building the financial software that serves this activity to unprecedented lows.
However, as software increasingly becomes a commodity, the factors that underpin the value of a financial business will not be devalued. Direct customer relationships, real risk capital, and non-public proprietary data will remain extremely difficult to acquire, and businesses that control these scarce resources will retain pricing power.
That is why we are particularly optimistic about the next generation of DeFi startups. The widespread adoption of AI development tools gives startup teams a faster, lower-cost weapon with which to challenge traditional giants. Once a team proves its model and builds any one of these moats, it may grow into a highly resilient, enduring business.
Ultimately, code can always be forked or generated directly by the most advanced AI models. But no model can conjure any of the moats described above out of thin air. As crypto investors, this is where the real opportunity for outsized returns lies. (See the original essay on Multicoin’s website for the disclosure statement.)











