{"id":839,"date":"2026-11-08T10:22:13","date_gmt":"2026-11-08T09:22:13","guid":{"rendered":"https:\/\/julen7fdez.eus\/?p=839"},"modified":"2026-11-08T10:22:13","modified_gmt":"2026-11-08T09:22:13","slug":"why-hayden-adams-built-uniswap-the-origin-story-of-decentralized-trading","status":"publish","type":"post","link":"https:\/\/julen7fdez.eus\/?p=839","title":{"rendered":"Why Hayden Adams Built Uniswap: The Origin Story of Decentralized Trading"},"content":{"rendered":"<p>In 2018, Hayden Adams faced a practical problem that centralized exchanges had made worse rather than better. Trading tokens on Ethereum required either depositing funds into a custodial platform\u2014surrendering control and accepting counterparty risk\u2014or navigating fragmented, illiquid orderbook exchanges where finding a willing buyer or seller could take hours. The existing solutions were built on assumptions that belonged to traditional finance: a trusted intermediary matching trades, holding assets, and controlling the flow of money. That model worked poorly for peer-to-peer token swaps on an open blockchain where no intermediary should be necessary.<\/p>\n<p>Adams, then a recent graduate working through his first substantial engineering challenge, began sketching what would become uniswap: a protocol that removed the intermediary entirely by replacing the orderbook with an automated market maker (AMM). Instead of waiting for someone to want to sell exactly what another person wanted to buy, liquidity providers would deposit pairs of tokens into a smart contract, and any user could trade against that pool at a price determined by a simple mathematical formula. No KYC verification. No custody arrangements. No centralized company controlling the protocol. Just code running on Ethereum that anyone could use, verify, and build upon.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sites.google.com\/sitesv-images-rt\/AMxu72sm1umy7dEbxvX5UpUnL8Ao0NY0Tlg2LbGvutSoOQ5WqmCwnIOIxBYK_hMt4qNmadZSYtFlfgOYdnp7sLd_ztAIIqFlfyCy0PBD6K6C1OCbHMST_ZpfK1r57pXEnxZSeT9fRuSQWUgSe6ZmcHbQxuQNP_kJacW7aao80X_hbFcYEzJoTi529lBfD7XFwL2XpeeVZrB5jGZ1x0pxtnNY\" alt=\"Diagram showing the AMM liquidity pool mechanism, illustrating how token pairs interact through the uniswap formula to determine exchange rates without a centralized orderbook\" \/><\/p>\n<h2>The problem with centralized exchange models in 2018<\/h2>\n<p>By the time Adams started building, Ethereum had existed for three years. The network had thousands of tokens, thousands of holders, and almost nowhere liquid to trade them. Centralized exchanges such as Coinbase, Kraken, and Binance required extensive identity verification, bank account linking, and geographical restrictions. They held custody of user assets on their servers, creating both operational security burdens and regulatory exposure for the platforms themselves. A hack, freeze, or regulatory action could affect thousands of users simultaneously.<\/p>\n<p>The alternative venues were worse. Decentralized orderbooks required matching a buyer and seller at the same price, a problem that worsened as the diversity of tokens increased. Trading from token A to token B to Ethereum to a stablecoin often meant crossing several orderbooks, each with thin liquidity and unfavorable slippage. The user experience was fragmented, and the total capital required to bootstrap enough liquidity for a functioning market was enormous. Projects wanting to create markets for their tokens had to either convince an exchange to list them\u2014a slow, centralized decision\u2014or accept that their tokens would be nearly impossible to trade.<\/p>\n<p>The regulatory landscape also created pressure. Exchanges handling user deposits fell squarely into the jurisdiction of banking regulations, anti-money-laundering (AML) and know-your-customer (KYC) requirements that <a href=\"https:\/\/www.fincen.gov\/\">FinCEN enforced for money services businesses<\/a>, and securities regulations depending on the assets traded. Each jurisdiction had its own rules, and complying with all of them was costly. A decentralized alternative that did not take custody of funds or control access to any asset could potentially sidestep many of these obligations.<\/p>\n<p>Adams recognized that the constraint was not engineering or mathematics. It was architecture. If the exchange protocol could operate as <a href=\"https:\/\/ethereum.org\/\">open-source smart contracts on Ethereum<\/a>, with no company controlling the matching or custody, then users could retain self-custody, liquidity could come from anyone willing to provide it, and regulation could be clearer because no intermediary was taking deposits or controlling asset movement.<\/p>\n<h2>The automated market maker insight<\/h2>\n<p>An automated market maker is deceptively simple in concept: rather than maintaining an orderbook where buy and sell orders are matched, an AMM maintains a liquidity pool of two or more tokens. When a user buys one token, they deposit another and receive the first at a price determined by the ratio of tokens in the pool. The price adjusts automatically based on the transaction size, incentivizing arbitrageurs to restore balance and liquidity providers to supply more capital when the opportunity is profitable.<\/p>\n<p>The mathematical foundation is the constant product formula, most famously expressed as x * y = k. If a pool contains x amount of token A and y amount of token B, the product of those quantities remains constant (or nearly constant, adjusted for fees). When a user buys token B by depositing token A, the quantity of A increases and the quantity of B decreases, shifting the price higher for the next buyer. Over time, arbitrage traders monitor prices across markets and rebalance pools, earning a spread and keeping prices aligned to broader market conditions.<\/p>\n<p>What made this approach revolutionary was that it required no order matching, no order book, and no central coordinator. Anyone could deposit liquidity into a pool and start earning a share of trading fees immediately. Any user could swap at any time without waiting for liquidity to arrive. The protocol was entirely transparent: anyone could read the smart contract code and verify exactly how prices were calculated and how fees were distributed. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cryptocurrency\">Cryptocurrency wallets<\/a> already existed with the ability to sign transactions; users could trade directly from their wallets without creating accounts or trusting a custodian.<\/p>\n<p>The trade-off was immediate slippage and impermanent loss for liquidity providers. If a large trade moved the pool price substantially, the remaining traders faced worse rates. Liquidity providers who supplied capital at the initial price would experience impermanent loss if prices moved sharply in either direction, potentially earning less in fees than they would have by simply holding the original tokens. These were not hidden costs; they were intrinsic to the model. But they were far more transparent than the spread and custody risk of centralized exchanges, and the mathematical elegance meant that anyone could calculate their exposure before committing capital.<\/p>\n<h2>From prototype to the first live protocol<\/h2>\n<p>Adams launched the first version of uniswap on Ethereum&#8217;s mainnet in November 2018 with minimal marketing and no token sale. The initial implementation was deliberately simple: only ETH-ERC20 token pairs, the constant product formula, and a 0.30 percent trading fee split among liquidity providers. There was no governance token, no decentralized vote, and no promise that the protocol would ever evolve beyond its first design. It was a proof of concept that could be forked, improved, or abandoned without a corporation preventing it.<\/p>\n<p>The response was immediate within the Ethereum community but cautious in the broader market. The first liquidity providers were often developers and early believers who understood the trade-offs and saw the potential. Trading volume grew slowly at first because awareness was limited and competing protocols also existed. But each trade generated fees that accumulated in liquidity pools, rewarding early providers. Each pool that grew attracted more traders through better prices. By 2019, uniswap was processing millions of dollars in daily volume, and its simplicity had become its greatest strength: the protocol required almost no maintenance, no central operator, and no gatekeeping.<\/p>\n<p>A critical moment arrived in 2020 when yield farming emerged and uniswap became a core piece of decentralized finance infrastructure. Protocols began building lending platforms, derivatives, and synthetic assets\u2014all needing liquid markets to function. uniswap&#8217;s permissionless design meant that any new token could be traded without approval from developers or governance. This created a virtuous cycle: more tokens drew more traders, more traders attracted more liquidity, and more liquidity drew developers building new financial primitives on top.<\/p>\n<p>In May 2020, <a href=\"https:\/\/sites.google.com\/uniswap-dex.app\/uniswap-trade-crypto\/\">uniswap<\/a> introduced the UNI governance token, retroactively rewarding early liquidity providers and distributing governance rights to the community. This moment marked a subtle but important shift: the protocol now had a mechanism for decentralized decision-making. Future upgrades, fee changes, and deployments to new networks could be proposed and voted on by token holders rather than determined by a small group of developers. Adams had solved the technical problem of decentralized trading; now the community would govern its evolution.<\/p>\n<h2>The evolution through Uniswap V2 and V3<\/h2>\n<p>Uniswap V2 arrived in May 2020 with a major architectural improvement: any ERC-20 token could be paired with any other ERC-20 token without requiring Ethereum (ETH) as an intermediary. This meant liquidity could consolidate around direct pairs such as USDC-DAI, rather than fragmenting across ETH-USDC and ETH-DAI pools. The new version also introduced flash swaps, allowing a trader to receive tokens and pay for them later in the same transaction if they could prove they had provided value. This enabled arbitrage and liquidation strategies that had not been possible before.<\/p>\n<p>V2&#8217;s governance proposal process also refined how the protocol would change. The mechanism for proposing upgrades, voting on them, and implementing them became more formal and decentralized. Community members could submit ideas, discuss them, and vote on execution. This governance structure distinguished uniswap from other decentralized exchanges and established a template that other protocols would later copy.<\/p>\n<p>Uniswap V3, released in May 2021, introduced concentrated liquidity: instead of spreading capital evenly across the entire price curve, a liquidity provider could specify a price range and concentrate their capital there. This allowed much deeper liquidity in actively traded ranges while reducing capital inefficiency. A provider betting that ETH would trade between $1,800 and $2,200 could deposit all their capital in that range rather than also covering prices from $1 to $1,800. The trade-off was increased complexity and higher impermanent loss if prices moved outside the specified range.<\/p>\n<p>V3 also introduced tiered fee structures\u20140.01 percent, 0.05 percent, 0.30 percent, and 1 percent\u2014allowing liquidity providers to choose their fee level. Stablecoin pairs could operate at 0.01 percent fees with modest slippage, while volatile token pairs might use 1 percent fees to compensate for risk. This flexibility made uniswap more adaptable to different market conditions and token types.<\/p>\n<h2>Scaling beyond Ethereum with Layer 2 and new networks<\/h2>\n<p>As Ethereum&#8217;s gas fees rose during the 2021 bull market, uniswap&#8217;s transaction costs became prohibitive for small trades. The protocol&#8217;s popularity was creating the very scalability problem it was designed to solve. The answer came through Layer 2 solutions: Arbitrum, Optimism, Base, and Polygon\u2014chains that process transactions faster and cheaper while periodically settling to Ethereum for security.<\/p>\n<p>Deploying uniswap to these networks was technically straightforward\u2014the smart contracts were identical\u2014but it fragmented liquidity. A trader on Arbitrum might find better prices there than on Ethereum, while another trader found the opposite on Optimism. This created an arbitrage opportunity and complexity for users who had to choose which network to use. Protocols like Across, Stargate, and others emerged to bridge liquidity between networks, but uniswap itself remained separate pools on separate chains.<\/p>\n<p>By 2024, uniswap had established itself across five major networks with cumulative trading volume measured in trillions. The protocol had processed over $3 trillion in lifetime volume by May 2025, making it the largest decentralized exchange by a substantial margin. This scale created both visibility and regulatory scrutiny. The <a href=\"https:\/\/www.cftc.gov\/\">CFTC and other financial regulators<\/a> were increasingly focused on decentralized finance, particularly on whether protocols enabling derivatives or leverage should be subject to the same rules as traditional futures exchanges.<\/p>\n<p>The regulatory uncertainty did not change the protocol&#8217;s function or its decentralized structure. uniswap was not a company that could be shut down; it was code running on public blockchains. But the developers, liquidity providers, and users all faced potential legal exposure depending on their jurisdiction and how they used the protocol. Some countries moved toward clarity, while others maintained ambiguity or hostile stances toward decentralized finance.<\/p>\n<h2>UniswapX and the next frontier of decentralized trading<\/h2>\n<p>In 2023, uniswap introduced UniswapX, a new order routing layer that fundamentally changed how users interact with the protocol. Instead of executing swaps directly against liquidity pools and paying gas fees, UniswapX allows users to create intents\u2014signed messages describing what they want to trade. Solvers then compete to fulfill those intents at the best possible price, and the user&#8217;s transaction is only settled when a favorable route is found. This design reduces gas costs, eliminates failed transactions, and introduces protection against maximal extractable value (MEV).<\/p>\n<p>UniswapX represents an important evolution in decentralized exchange design. Rather than relying solely on the constant product formula, the protocol now uses an intent-based model where the user specifies what they want and the system figures out the best way to execute it. Solvers might route through uniswap pools, through other decentralized exchanges, or through hybrid paths that split the order across multiple venues. The user sees a single quote and a single confirmation, while the execution details remain transparent but optional to understand.<\/p>\n<p>The trade-off is complexity: UniswapX introduces a new set of participants (solvers) whose behavior affects execution quality and whose incentives may not always align perfectly with users. But it also demonstrates that the decentralized exchange model continues to evolve. The original vision of peer-to-peer trading without intermediaries remains intact; the mechanisms for achieving it have become more sophisticated.<\/p>\n<h2>Why decentralization mattered in 2018 and matters today<\/h2>\n<p>Looking back from 2025, it is easy to assume that uniswap was inevitable\u2014that the AMM model was always the natural solution and success was assured. The reality was different. When Adams started building, many experienced developers thought the orderbook model would eventually dominate decentralized trading, that users would never accept slippage and impermanent loss, and that regulatory pressure would force all trading to centralized platforms anyway.<\/p>\n<p>What Adams understood was that decentralization was not a convenience feature; it was the core value proposition. A centralized exchange could always be faster, cheaper, and more liquid in the short term by accepting the costs of custody and compliance. But it could also be frozen, hacked, regulated out of existence, or simply fail as a business. A protocol that ran on Ethereum and could not be shut down, censored, or compromised by a single failure point offered something no company could match: certainty that the rules would not change and that users would retain control of their assets.<\/p>\n<p>The regulatory landscape has since evolved, and <a href=\"https:\/\/www.esma.europa.eu\/\">regulators like ESMA in Europe<\/a> have proposed frameworks for decentralized finance. But the fundamental tension remains: centralized platforms offer simplicity and compliance certainty, while decentralized protocols offer censorship resistance and self-custody. Most sophisticated users and institutions have concluded they need both, using centralized exchanges for onboarding and compliance while using decentralized protocols for trading when custodial risk is unacceptable.<\/p>\n<p>Adams&#8217; insight was not that decentralization was better in every way. It was that the problem decentralization solved\u2014the irreducible risk of trusting an intermediary\u2014was worth optimizing for even if it meant accepting trade-offs in efficiency, user experience, and immediate liquidity. Over six years and three trillion dollars later, that bet has paid off in ways that extend far beyond uniswap itself. The protocol became the template for an entire category of financial infrastructure, one that operates without companies, without gatekeepers, and without the permission of any regulator.<\/p>\n<h2>The structural innovations that endure<\/h2>\n<p>The core innovations that made uniswap possible\u2014open-source smart contracts, permissionless token trading, liquidity pool mathematics, and community governance\u2014are now standard in decentralized finance. But their combination was novel in 2018, and their refinement has continued through multiple protocol versions and network deployments.<\/p>\n<p>The most durable insight is that you can build financial infrastructure without building a financial institution. A protocol does not require lawyers, compliance officers, or insurance; it requires only transparent code and sufficient liquidity to function. Risks exist, but they are technical and economic rather than custodial. A user cannot lose funds because uniswap goes bankrupt, but they can lose them through slippage, hacks, or sending tokens to the wrong address. Those are fundamentally different failure modes.<\/p>\n<p>Systemic risk in decentralized finance remains a concern that <a href=\"https:\/\/www.bis.org\/\">the Bank for International Settlements has analyzed closely<\/a>. Large positions in uniswap or other decentralized venues could amplify volatility, liquidations in lending protocols could trigger cascades, and interconnected risk across protocols could create contagion. But none of these risks depend on uniswap as a company failing. They depend on market conditions, on the behavior of other protocols, and on the collective behavior of traders and liquidity providers.<\/p>\n<p>This distinction\u2014between company risk and protocol risk\u2014is essential to understanding why Adams built what he built. Centralized exchanges are businesses that can fail. Decentralized protocols are systems that can be inefficient or vulnerable but cannot be shut down by regulators or corrupted by management. For a category of users and use cases, that difference is everything.<\/p>\n<div class=\"faq\">\n<h2>Frequently asked questions<\/h2>\n<div class=\"faq-item\">\n<h3>What makes uniswap different from a traditional centralized exchange?<\/h3>\n<p>Uniswap is a decentralized exchange protocol that operates through smart contracts on public blockchains, requiring no central company or custody arrangement. Users trade directly from their wallets without KYC verification or account creation. A centralized exchange holds user assets and controls the matching process, while uniswap relies on automated market maker pools where anyone can provide liquidity and any user can trade at a transparent, formula-determined price.<\/p>\n<\/p><\/div>\n<div class=\"faq-item\">\n<h3>How do liquidity providers earn on uniswap?<\/h3>\n<p>Liquidity providers deposit equal values of two tokens into a pool and earn a share of trading fees generated by that pool. The fee varies depending on the pool version and tier\u2014typically 0.01 percent to 1 percent of each trade. Providers accept the risk of impermanent loss, which occurs when token prices diverge significantly from the point at which liquidity was supplied. The fee income may or may not offset this loss depending on trading volume and price movement.<\/p>\n<\/p><\/div>\n<div class=\"faq-item\">\n<h3>Is uniswap regulated, and does it comply with KYC requirements?<\/h3>\n<p>Uniswap the protocol is open-source code running on Ethereum and Layer 2 networks with no central entity controlling it, so regulation of the protocol itself is unclear and varies by jurisdiction. However, front-end applications that facilitate access to uniswap, as well as users in certain jurisdictions, may face regulatory requirements. The protocol itself enforces no KYC or identity verification because no intermediary exists to enforce such requirements, but users in regulated jurisdictions remain subject to their local laws.<\/p>\n<\/p><\/div>\n<\/div>\n<p><!--wp-post-meta--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In 2018, Hayden Adams faced a practical problem that centralized exchanges had made worse rather than better. Trading tokens on Ethereum required either depositing funds into a custodial platform\u2014surrendering control and accepting counterparty risk\u2014or navigating fragmented, illiquid orderbook exchanges where finding a willing buyer or seller could take hours. The existing solutions were built on [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":"","_wpscppro_custom_social_share_image":0,"_facebook_share_type":"","_twitter_share_type":"","_linkedin_share_type":"","_pinterest_share_type":"","_linkedin_share_type_page":"","_instagram_share_type":"","_medium_share_type":"","_threads_share_type":"","_selected_social_profile":[]},"categories":[1],"tags":[],"class_list":["post-839","post","type-post","status-publish","format-standard","hentry","category-sailkatu-gabea"],"_links":{"self":[{"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=\/wp\/v2\/posts\/839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=839"}],"version-history":[{"count":1,"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=\/wp\/v2\/posts\/839\/revisions"}],"predecessor-version":[{"id":840,"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=\/wp\/v2\/posts\/839\/revisions\/840"}],"wp:attachment":[{"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/julen7fdez.eus\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}