History of DeFi: origins and evolution of decentralized finance
The history of DeFi from The DAO to tokenized funds: what each stage added (Dai, Uniswap, UNI, Terra, BUIDL) and which risk it moved.

On 2 November 2018, the last day of the Devcon 4 conference in Prague, Hayden Adams deployed the Uniswap contracts to Ethereum mainnet: a market where anyone could swap one token for another against reserves held in a contract, without opening an account and without a company matching orders. It is one of the milestones of what is now called decentralized finance, or DeFi: applications that provide financial functions (swapping, lending, borrowing, managing collateral) through smart contracts deployed on a public network, which users reach with their own wallet and whose rules anyone can read.
DeFi has no founder and no birth date, but its history does have a thread. Each stage repeats the same move with bigger pieces: replacing the counterparty (the lender, the market that sets the price, the manager that holds custody) with a contract whose rules are public and run the same way for everyone. And each stage has found out what remained outside that contract: first the code itself, then the price that comes from outside, the incentives that attract capital, the backing behind a stable coin and, with tokenized assets, the issuer that answers for them off-chain. Reading the timeline with that question explains why DeFi's current risks are the ones they are.
Before 2017: a programmable network and its first lesson
Bitcoin had shown that an open network could maintain transfers of its coin without an entity keeping the ledger, but its programming language is deliberately limited. Ethereum, whose first release, Frontier, went live on 30 July 2015, added an environment where anyone can deploy programs that hold balances, accept deposits and enforce conditions. That made it possible to write a financial agreement as code and let other contracts use it as a building block, the property DeFi calls composability, which explains both how quickly protocols were combined and how their failures spread.
The first lesson came the following year. The DAO, a contract that worked as a collective investment fund governed by its participants' votes, suffered an attack in 2016 that drained over 3.6 million ETH by exploiting a flaw in its code. The Ethereum community responded with a network fork, activated on 20 July 2016, that moved those funds to a new contract from which they could be returned, an intervention that opened a debate on whether a network should undo the outcome of a contract that did what its code allowed. The lesson is the first dependency on the list: a contract does exactly what its code says, including when the code says something nobody intended.
2017: Dai and collateralized lending written into a contract
MakerDAO announced the launch of Dai in December 2017. Its first version let users deposit ether in a contract as collateral and generate Dai in return, a coin designed to track the value of the dollar. Users obtained liquidity without selling their ether, in exchange for a debt they had to keep covered: if the collateral's value fell below the set threshold, the contract liquidated it to repay the debt. It was a collateralized loan without a lender, on identical terms for anyone who interacted with the contract, and the model DeFi lending markets later followed.
Dai brought the second dependency. To know what the deposited ether is worth, the contract needs a price formed outside it, in the markets, and someone has to bring that price on-chain. An oracle plays that role, and its reliability becomes part of the loan's: a wrong or delayed price can liquidate healthy positions or leave uncovered ones untouched. Overcollateralization, which requires depositing more value than is received, reduces that risk in normal market conditions, but does not remove it during a sharp price drop or an oracle outage.
2018: Uniswap and a price set by a formula
Hayden Adams had lost his job on 6 July 2017 and spent the following months learning Ethereum and Solidity. In October that year he started a proof of concept on a suggestion from Karl Floersch: build an automated market maker like the one Vitalik Buterin had described in a post, using a formula, x·y=k, that according to Adams's own account had first been conceived by Alan Lu of Gnosis. The Ethereum Foundation awarded him a grant, announced on 17 August 2018, and the deployment came at Devcon 4. His career is covered in the Hayden Adams profile.
The novelty was the mechanism. Instead of an order book, each Uniswap market is a contract holding reserves of two tokens, and the price comes from the ratio between them: whoever buys one token takes it out of the reserve and deposits the other, so the product of both amounts stays constant and the purchased token becomes more expensive. Anyone can provide liquidity and earn a share of the fees, and anyone can trade without waiting for a counterparty. In return, the larger a trade is relative to the reserves, the worse its average price (the price impact), and liquidity providers accept that the composition of their deposit changes with the market, the so-called impermanent loss. The general model is in the AMM entry.
2020: token incentives and governance
In 2020 DeFi's growth came to rely on a new tool: distributing a protocol's own tokens to those who deposited funds or used it. The launch of UNI in September 2020 combined a retroactive distribution to past Uniswap users with a liquidity mining program for those who supplied funds to certain markets. The token also carried the right to vote on protocol proposals, which moved part of its decisions to the holders of a governance token.
Incentives brought the third dependency. An advertised yield that mixes usage fees with newly issued tokens depends on the price of those tokens, and when the reward drops, the capital it attracted moves to another protocol. Deposits accumulated during a campaign measure the reward on offer, not demand for the service. Governance has a similar limit: votes are allocated by token holdings, so concentrated holdings mean concentrated decisions, and the real reach of a vote depends on which contract functions it can change and on who executes what is approved.
2021-2022: capital efficiency and the collapse of Terra
Uniswap v3, deployed in May 2021, allowed liquidity to be concentrated within a price range. With the same capital, a provider offers more depth where trading happens, but the position stops earning fees if the price leaves the chosen range, which turns passive provision into a position that has to be monitored and adjusted. It is a pattern that recurs in DeFi's history: each efficiency gain shifts part of the work and the risk to the user, as the concentrated liquidity entry explains.
A year later came the collapse of Terra. In May 2022, UST, a coin of the Terra ecosystem designed to hold its dollar peg through an algorithmic mechanism, lost that peg, and its price and that of Terraform's other tokens fell close to zero. According to the SEC, the collapse wiped out 40 billion dollars of market value almost overnight. In April 2024 a jury found Terraform Labs and its founder, Do Kwon, liable for securities fraud, and in June that year they agreed to pay more than 4.5 billion dollars.
Terra exposed the fourth dependency: a coin that promises stability gets it from what backs it, and a mechanism that rests on confidence in another token on the same network is not the same as reserves that can be sold under pressure. The case also makes it necessary to separate two kinds of failure that are often told together. A protocol whose economic design fails and a company that loses the funds it held for its clients are different problems, with different parties responsible, even when both are presented as crises of the sector.
2024-2025: tokenized funds and modular protocols
The most recent stage connects DeFi with assets issued off-chain. On 20 March 2024, BlackRock launched BUIDL, its first tokenized fund issued on a public blockchain, on Ethereum. The fund invests 100% of its assets in cash, US Treasury bills and repurchase agreements; Securitize acts as transfer agent and tokenization platform; and it is reserved for qualified investors, with a minimum initial investment of 5 million dollars. The press release itself warns that the token may not maintain a stable value of one dollar at all times.
A fund like this gives DeFi something it lacked, a yield tied to government debt rather than to token incentives, and brings the fifth dependency: an identified issuer, with a register of holders and a list of eligible investors that limits who the token can reach. A protocol that accepts it as collateral inherits those rules, so anyone building with it needs to know who can restrict its transfers, who handles redemptions and during which hours. The legal and technical layers of that connection are covered in the analysis of asset tokenization.
At the same time, protocols have become configurable. Uniswap v4 went live on 12 networks on 31 January 2025 with so-called hooks, modules that let a developer add custom logic to pools, swaps, fees and liquidity positions. A pool can, for example, compute its fees with its own rule, so one protocol now serves cases that previously required a new one. The trade-off is that security review no longer ends at the protocol: each hook is third-party code that has to be assessed separately.
History of DeFi: risk does not disappear, it moves
Read as a whole, the history of DeFi supports its main contribution. A loan, a market or a fund can run on public rules, applied the same way to anyone with a wallet, without asking permission to take part and without handing custody of funds to a company. For the digital asset space that has a value of its own, users' control over what they hold and resistance to a third party shutting them out, and the state of each protocol can be checked on-chain at any time, something a financial institution's balance sheet does not offer.
What the timeline refutes is that removing the intermediary removes the risk. Each stage has moved it somewhere else: to the code in 2016, to the external price with lending, to incentives in 2020, to the design of stability with Terra and to the issuer with tokenized funds. That is why assessing a protocol today means going through the same list: who can upgrade its contracts, where its prices come from, how much of its yield is fees and how much is new tokens, what backs its stable coins and which off-chain issuers can alter the assets it accepts.
European regulation looks at the same point. MiCA excludes crypto-assets that are financial instruments, which follow securities law, and the European Commission confirmed, in an answer published by ESMA on 18 February 2026, that crypto-assets without an identifiable issuer fall outside Title II of the regulation, although providers offering services on them still need authorization. The legal question is not whether a product calls itself decentralized, but who issues, who provides the service and what control each of them keeps. At Metlabs we develop smart contracts and tokenization platforms that integrate with these protocols, and we start every project with that list of dependencies.
- Ethereum: DeFi
- Ethereum: history of forks (Frontier, DAO fork)
- MakerDAO: Dai launch, December 2017
- Hayden Adams: Uniswap history
- Uniswap: UNI distribution and liquidity mining
- Uniswap: concentrated liquidity in v3
- SEC: Terraform and Do Kwon to pay more than $4.5 billion (13 June 2024)
- BlackRock: launch of BUIDL on the Ethereum network (press release, 20 March 2024)
- Uniswap Foundation: Uniswap v4 live across 12 chains (31 January 2025)
- MiCA Article 2: scope
- ESMA Q&A 2552: crypto-assets without an identifiable issuer
Got a blockchain project in mind?
From idea to product, strategy and technology must move forward together.







