Glossary · DeFi
Published 28 Apr 2025 · Updated 9 Nov 2026 · 17 min read
DeFi (decentralized finance) is trading, lending and borrowing through smart contracts on public blockchains, accessible with a wallet rather than a bank or broker account. These services use code to apply financial rules. Access does not mean every service is fully decentralized, unchangeable or protected against losses.
The rules of a market or loan can be written into code on a blockchain. A user's wallet then talks to that code instead of a bank clerk. DeFi protocols use smart contracts to hold assets and apply those rules. The definitions below emphasize different features, including open access, automation and control. IOSCO's December 2023 report notes that DeFi has no generally accepted definition.
| Source | Date | Definition, in its own words | What it adds |
|---|---|---|---|
| BIS Quarterly Review, DeFi risks and the decentralisation illusion | Date6 December 2021 | Definition, in its own words“Decentralised finance (DeFi) aims to provide financial services without intermediaries, using automated protocols on blockchains and stablecoins to facilitate fund transfers.” | What it addsThe mechanism, and the warning about centralised governance |
| IOSCO, Final Report with Policy Recommendations for DeFi | DateDecember 2023 | Definition, in its own words“DeFi commonly refers to financial products, services, activities, and arrangements that use distributed ledger or blockchain technologies (DLT), including self-executing code referred to as smart contracts.” | What it addsSecurities regulators: smart contracts, and responsible persons behind them |
| FSB, The Financial Stability Risks of Decentralised Finance | Date16 February 2023 | Definition, in its own words“DeFi is an umbrella term commonly used to describe a variety of services in crypto-asset markets that aim to replicate some functions of the traditional financial system” | What it addsA financial stability view: copies of TradFi functions |
| ESMA, Decentralised Finance in the EU: Developments and risks | Date11 October 2023 | Definition, in its own words“Decentralised finance (DeFi), which seeks to provide financial services using blockchain or distributed ledger technologies in an open, decentralised and permissionless way” | What it addsThe EU supervisor's wording |
| US Treasury, Illicit Finance Risk Assessment of DeFi | DateApril 2023 | Definition, in its own words“The term broadly refers to virtual asset protocols and services that purport to allow for some form of automated peer-to-peer (P2P) transactions” | What it adds“Purport”: often decentralized more in name than in fact |
| ethereum.org, Decentralized finance (DeFi) | DateRead 9 November 2026 | Definition, in its own words“DeFi is a collective term for financial products and services that are accessible to anyone who can use Ethereum – anyone with an internet connection.” | What it addsThe builders' view: open access |
A self-custody wallet signs transactions with a private key. Deposited assets, including stablecoins, sit in pooled smart contracts, rather than remaining under that key's direct control. A website is one entry point to a protocol, but developers can call contracts directly. An atomic transaction completes in full or reverts. A flash loan uses this property to require repayment within the same transaction. Composability lets protocols combine calls and assets on the Ethereum network and other blockchains.
A governance token can confer voting power, but ownership may be concentrated. DAO governance does not guarantee dispersed control. An admin key can alter a protocol's smart contracts. An upgradeable proxy separates stored data from replaceable logic, while a timelock delays changes. BIS called this a "decentralisation illusion" in December 2021. The US Treasury found many DeFi services "decentralized more in name than in fact" in April 2023. IOSCO's December 2023 report points to responsible persons who control or sufficiently influence an offering.
In the EU, MiCA has applied in full since 30 December 2024. It leaves out services "provided in a fully decentralised manner without any intermediary." The Commission's 2026 review consultation asks whether to add DeFi rules. In the US, no federal market-structure law has passed: a Senate cloture motion on the CLARITY Act failed 49 to 50 on 15 September 2026. Congress repealed the IRS DeFi broker reporting rule in April 2025.
A DeFi protocol interaction begins with a signed instruction, not a request for an employee to approve it. The interface prepares that instruction, and the network processes it. The steps below separate permission to move tokens from execution and final settlement.
A self-custody wallet uses a private key to control the account. The front end is one route to the protocol, not the contract itself.
A token approval lets a contract move tokens. Signed approvals are a phishing route even when keys stay private. Scam Sniffer reports $83.85 million in signature phishing losses during 2025.
Ethereum gas fees are paid even if a transaction fails. The base fee is burned, while the validator receives the priority fee, also called a tip.
The pool or lending market is a smart contract. A protocol applies its encoded rules to each call, such as executing a swap or checking whether a loan has enough backing.
One transaction can call several DeFi protocols. A flash loan allows borrowing without collateral only if repayment happens within that transaction. Otherwise, the entire transaction reverts.
Ethereum finalizes blocks across two epochs. With 32 slots per epoch and 12 seconds per slot, that takes at least 12.8 minutes, and ethereum.org puts it at about 15 minutes.
Changing a protocol follows a separate path from using it. Uniswap governance uses a two-day wait, seven-day vote and two-day timelock. Admin keys and upgradeable proxies can also change the rules behind an interface. In October 2026, Aave Labs proposed upgrading Aave v3 pools, including the Core market on Ethereum, to version 3.8 with a reentrancy guard. A timelock gives notice, but also slows urgent patches.
A decentralized exchange can price swaps through an automated market maker rather than matching individual orders. A liquidity pool holds the assets. This DeFi example uses the constant product formula and measured reserves of a Uniswap v2 USDC/WETH pool.
Selling 1 WETH returns 2,126.58 USDC in this calculation. The 0.32% cost against spot is almost entirely the fee.
Selling 10 WETH returns 21,222.43 USDC, about 0.53% below spot. Price impact starts to show alongside the fee.
Selling 100 WETH costs about 2.5% against spot and moves the spot price 4.4%. Arbitrage traders then close the gap.
Selling 1,000 WETH costs 18.7% against spot and moves spot 33.6%, illustrating why large trades are split or routed through deeper pools.
A liquidity provider is 5.7% behind simply holding if ETH doubles or halves from the deposit price, before fees.
The page team calculated this figure from pool reserves on 9 November 2026 using the Uniswap v2 formula.
On Ethereum, Uniswap v2 charges 0.30% per swap, split into 0.25% for liquidity providers and 0.05% for the protocol since December 2025. Price impact grows with trade size relative to reserves. Launched in May 2021, Uniswap v3's concentrated liquidity uses custom price ranges and 0.01%, 0.05%, 0.30% or 1.00% fee tiers. Uniswap v4, launched in January 2025, adds hooks for custom pool logic. Curve's November 2019 StableSwap design blends constant sum and constant product, limiting slippage for like-priced assets while its pool stays balanced.
In this protocol, fees stay in the pool, and providers collect them through LP tokens when withdrawing. Fees are income, not a guaranteed yield after losses. For a 50/50 pool, impermanent loss is 5.7% when the relative price doubles or halves, and 25.5% at five times. Trading volume determines whether fees offset that gap. Traders face another cost from maximal extractable value, or MEV. A sandwich attack targets a pending trade visible in the mempool, increasing slippage and worsening execution.
Most DeFi lending protocols replace credit checks with excess collateral, rather than removing credit risk. This example models a USDC stablecoin loan against 10 ETH. An Aave governance change on 28 October 2026 set the 81% loan-to-value limit and 84% liquidation threshold used here. The 5% liquidation bonus was unchanged.
The health factor is above 1, so no liquidation is possible yet. The room shows how far ETH can still fall.
The health factor is just above 1. A small further fall in ETH would make the position eligible for liquidation.
Below 1 but above 0.95, up to half the debt can be repaid. The borrower pays a 5% bonus, and Aave keeps 20% of it.
At a health factor of 0.95 or below, the close factor permits repayment of the whole debt at once.
If prices fall before liquidators act, collateral may not cover debt plus the bonus. The lenders are left with bad debt.
The page team modeled one loan with Aave v3 Core WETH settings and the ETH price of 9 November 2026.
The loan-to-value ratio caps borrowing. Health factor equals collateral value times the liquidation threshold, divided by debt, using oracle prices. Below 1, liquidation becomes possible. The close factor allows repayment of up to half, or full repayment at 0.95 or below, with a 5% liquidation bonus. Full repayment is also allowed when debt or collateral is below $2,000. Other lending protocol designs differ. Compound III absorbs eligible accounts. Sky ETH-A vaults use a 145% liquidation ratio and Dutch auctions.
Liquidation can deepen a crash by selling collateral into falling markets, as BIS Working Paper 1062 explained in December 2022. Network congestion and high gas fees can delay liquidators. During Black Thursday in March 2020, over $8 million of ETH sold for zero DAI, leaving at least $4.5 million unbacked. From 17 to 23 May 2021, about $310 million was liquidated on Aave and $260 million on Compound. Aave retained about $60,000 of insolvent debt, according to Gauntlet's June 2021 analysis.
Composability connects DeFi protocols through shared assets. One service's token can become another's collateral or pool liquidity. A fiat-backed stablecoin also depends on its issuer and banking relationships. These links can carry a shock beyond the place where it starts.
The May 2022 UST run spread to stETH, which traded almost 7% below ETH in June 2022 before Ethereum staking withdrawals opened.
In March 2023, USDC's Silicon Valley Bank exposure drove it below 87 cents. DAI hit 88 cents, and Curve's 3pool became unbalanced.
A flash loan from Aave funded the Euler attack on 13 March 2023. At least 11 other protocols with deposits there also lost money.
In July 2023, a compiler bug drained Curve pools. CRV fell over 20%, bringing a large CRV-backed Aave loan close to liquidation.
The figure walks through four dated cases from the sources listed below, including reporting and protocol postmortems.
These cases share a dependency, not a single failure mechanism. A stablecoin or other asset used across several services changes price or becomes exposed to a loss. Positions elsewhere cannot always adjust quickly enough. In February 2023, the FSB warned that composability can amplify contagion's reach and speed. BIS described DeFi as lacking shock absorbers during stress in December 2021. The links between protocols matter alongside each smart contract's local rules, because separate applications can depend on the same liquidity.
The categories below group DeFi protocols by function, from trading and lending to stablecoin creation and derivatives. Liquid staking provides a tradable receipt, while a yield aggregator collects yield across services. A cross-chain bridge moves tokens between networks. Markets for real-world assets can have issuer-set access rules.
| Category | What it does | Main risk | Examples |
|---|---|---|---|
| DEXs | What it doesSwap tokens against pools priced by a formula | Main riskImpermanent loss for providers, sandwich trades for traders | ExamplesUniswap, Curve |
| Lending | What it doesLend to pools and borrow against more collateral than the loan | Main riskLiquidations in a crash, bad debt, oracle errors | ExamplesAave, Compound |
| CDP stablecoins | What it doesMint a stablecoin against locked collateral | Main riskCollateral crashes and failed auctions, backing held in other stablecoins | ExamplesSky (formerly Maker), Liquity |
| Derivatives | What it doesTrade with leverage, often perpetual futures | Main riskLeverage, and prices that can be moved | ExamplesGMX, Hyperliquid |
| Liquid staking | What it doesStake tokens and receive a tradable receipt | Main riskThe receipt can trade below the staked asset when exits are slow | ExamplesLido, Rocket Pool |
| Yield aggregators | What it doesMove deposits between other protocols | Main riskEvery underlying protocol's risk, stacked | ExamplesYearn, Beefy |
| Bridges | What it doesMove tokens between networks | Main riskKey or verifier compromise and upgrade bugs | ExamplesPortal (built on Wormhole), Stargate |
| Real-world assets | What it doesUse tokenized bonds or funds, for example as collateral | Main riskIssuer, legal and access limits set by each issuer | ExamplesAave Horizon (August 2025) |
Total value locked counts deposits, not safety or profit. DefiLlama records about $78.7 billion across chains on 9 November 2026, versus about $177.5 billion at the peak on 9 November 2021. These default totals leave out liquid staking and value DefiLlama marks as double counted. Category totals still overlap, since a receipt token deposited elsewhere can count the same assets twice. DefiLlama's protocol list also includes centralized exchanges, which are not DeFi.
Decentralized finance, centralized platforms and banks put control in different places. The comparison separates custody, identity checks, settlement, trading hours and recourse. CeFi holds client assets, while DeFi deposits enter protocol contracts. In the EU, MiCA Article 75 requires custody providers to legally segregate client crypto-assets.
| DeFi | Centralized platforms (CeFi) | Traditional finance | |
|---|---|---|---|
| Custody | DeFiThe user's wallet key. Deposits sit in protocol contracts | Centralized platforms (CeFi)The platform holds client assets. MiCA requires them to be kept apart from its own | Traditional financeBanks and brokers, under client asset rules |
| Identity checks | DeFiNo identity check at the protocol itself | Centralized platforms (CeFi)Required. EU transfer rules for crypto platforms since 30 December 2024 | Traditional financeRequired |
| Settlement | DeFiFinal on Ethereum after about 15 minutes | Centralized platforms (CeFi)On the platform's own books. Only deposits and withdrawals touch a chain | Traditional financeUS securities T+1 since 28 May 2024 |
| Transparency | DeFiContracts and transactions are public. Governance can be concentrated | Centralized platforms (CeFi)Books are private | Traditional financeRegulated reporting |
| Hours | DeFiAlways open | Centralized platforms (CeFi)Trading around the clock, but withdrawals can be frozen | Traditional financeExchange hours, for example 9:30 a.m. to 4:00 p.m. ET at the NYSE |
| Recourse and insurance | DeFiNo deposit insurance and, often, no one to claim against | Centralized platforms (CeFi)FDIC does not cover non-banks. SIPC excludes crypto that is not a security | Traditional financeDeposits insured to at least $250,000 in the US and EUR 100,000 in the EU |
| Failure examples | DeFiEuler (March 2023), Curve pools (July 2023) | Centralized platforms (CeFi)Celsius (June 2022), FTX (November 2022) | Traditional financeSilicon Valley Bank (March 2023) |
| EU rules | DeFiMiCA leaves out services provided in a fully decentralised manner | Centralized platforms (CeFi)MiCA licensing for crypto-asset service providers | Traditional financeBanking and securities law |
DeFi replaces a platform's counterparty exposure with smart contract, protocol governance and key risks, not with an absence of risk. FDIC insurance does not cover a non-bank's failure. SIPC does not protect crypto-assets that are not securities. Celsius froze withdrawals in June 2022 and entered bankruptcy in July 2022. FTX filed in November 2022. Those were CeFi failures. Euler in March 2023 and Curve in July 2023 instead illustrate exploits against DeFi infrastructure.
Value locked in DeFi grew from about $18 million in March 2018 to about $177.5 billion at its November 2021 peak, according to DefiLlama. Large failures followed in 2022. EU crypto-asset rules applied in full from December 2024, without directly addressing DeFi.
Sai, the first Dai, was deployed on Ethereum on 18 December 2017. It was a single-collateral stablecoin whose only external real-time input was its price oracle.
Uniswap v1 launched at Devcon 4 in November 2018. It priced swaps with a constant product formula, and traders paid a 0.3% fee that went to liquidity providers.
Compound began distributing COMP to users on 15 June 2020. Users earned COMP in real time in proportion to their balances, an early example of liquidity mining.
Uniswap v3 went live on 5 May 2021. Concentrated liquidity let providers choose custom price ranges, changing how they allocated assets within an automated market maker. Its fee tiers were 0.05%, 0.30% and 1.00%.
TerraUSD and LUNA collapsed in three days in May 2022 after a run on Anchor, a lending protocol that promised high yields to UST depositors. About $50 billion in valuation was wiped out.
The EU regulation applied in full from 30 December 2024, after entering into force in June 2023. Its scope distinguishes intermediary services from those provided in a fully decentralized manner.
Aave V4 went live on Ethereum mainnet on 30 March 2026. In V4, liquidation bonuses follow a Dutch auction, so a lower health factor brings a higher bonus.
In the Senate, cloture on the motion to proceed to the bill failed 49 to 50 on 15 September 2026, short of the 60 votes needed. The House had passed the bill in July 2025.
Publicly visible code does not remove operational or financial risk. DeFi failures can begin in code, signing permissions, voting power or external prices. The examples below distinguish those routes, since an audit of one smart contract cannot describe every dependency around it.
Chainalysis attributes 82.1% of 2022's $3.8 billion stolen to DeFi, and $1.1 billion to DeFi in 2023. OWASP's 2026 list includes oracle manipulation, flash-loan attacks and proxy flaws.
Ronin lost 173,600 ETH and 25.5 million USDC in March 2022 after key compromise. Nomad lost $190 million in August 2022 after an upgrade trusted a zero hash.
Beanstalk's April 2022 attacker used a flash loan to win at least two thirds of votes. An emergency proposal drained about $181 million to $182 million in one transaction.
The CFTC describes exchange trading that lifted Mango Markets' MNGO oracle price over 13-fold in October 2022. Over $110 million was withdrawn. Convictions were vacated in May 2025.
Transaction ordering can worsen execution without changing contract rules. A 2021 study estimated $540.54 million in extractable value over 32 months from sandwich attacks, liquidation and arbitrage.
Scam Sniffer's January 2026 report puts 2025 losses at $83.85 million across 106,106 victims. Permit and Permit2 signatures accounted for 38% of large-case losses, without requiring private key disclosure.
We build DeFi protocols and their smart contracts, decentralized exchanges, and lending and staking platforms. Security audits and refinement form part of the development process. PixelPlex is a software engineering company founded in 2007, with blockchain work dating to 2013. The scope can include consulting, cross-chain integration, implementation and support, depending on the product.
In the 2022 Alfprotocol case study, we delivered Solana smart contracts, a front-end app and an SDK, with Raydium integration. The client's protocol design targeted lending and overcollateralized borrowing, including borrowed funding for liquidity providers in automated market makers.
Discuss the design of your DeFi product
We can discuss a new application or review its planned contracts, integrations and risk controls before development begins.
Discuss your projectGet updates about blockchain, technologies and our company
We will process the personal data you provide in accordance with our Privacy policy. You can unsubscribe or change your preferences at any time by clicking the link in any email.Services
Blockchain
Blockchain consultingStrategy, architecture, feasibility
Crypto wallet developmentSelf-custody, MPC, cards on top
Cryptocurrency exchange developmentTrading venues, liquidity and protocols
Tokenization servicesRWA, funds, collateral
Crypto payments developmentAccept, settle and pay out in crypto
Smart contracts developmentDesign, build, audit
Blockchain integration dApp development DeFi development NFTs Tokens Web3 development All blockchain services All servicesNetworks
Canton developmentDaml apps, wallets, settlement, validators
Official Partner
Ethereum developmentSmart contracts, L2s and dApps
Solana developmentHigh-throughput programs and dApps
TON developmentMini apps, wallets, Telegram ecosystem
Official Partner
Hedera developmentHashgraph apps and token services
Exclusive Partner
Hyperledger developmentPermissioned networks for enterprises
Certified Partner
Cardano Algorand Stellar Avalanche Bitcoin Polygon All networks All servicesAI & ML
AI agents developmentConnect tools and automate multi-step workflows
RAG developmentFind answers across your company’s documents and systems
AI copilot developmentAdd useful assistance to your product or internal tools
LLM developmentCustom and fine-tuned models for your domain
Private AI deploymentRun models in your own environment
AI consultingUse cases, feasibility and a roadmap
Generative AI development Machine learning development Computer vision Chatbot development ChatGPT integration Deep learning development All AI services All servicesData & analytics
Data engineeringPipelines that keep your data reliable
Data platform developmentOne source of truth for analytics
Analytics & dashboards developmentBI your teams actually use
Predictive analyticsForecasts built on your own history
Data strategyWhere data can pay off first
Data visualizationDashboards and visual stories from your data
Data science development Development of data marts All data services All servicesSoftware
Product discoveryValidate scope and cost before you build
MVP developmentA launch-ready first release
Web application developmentPlatforms, portals and internal tools
Mobile app developmentiOS, Android and cross-platform
SaaS developmentMulti-tenant products that scale
Software integrationConnect the systems you already run
Infrastructure & cloud cost UI/UX design IT consulting QA & software testing R&D Serverless development All software services All servicesSecurity & compliance
Smart contract auditsFind vulnerabilities before launch
Transaction monitoring developmentIntercepta inside your systems and processes
Security assessmentsTest apps, infrastructure and processes
Data security servicesProtect sensitive data across its lifecycle
Cloud security servicesSecure cloud workloads and configurations
DAML smart contract auditReview DAML contracts before they go live
All security services All servicesSolutions
Products, APIs and platforms
New
Products and engineering to build and operate on Canton.
In production 55M API requests served in 8 months
Crypto APIBlockchain data for your applications.
Power in numbers 6 TB Data storage. 500K Tokens indexed
RWA platformA foundation for your asset tokenization platform.
Time to launch 2–4 weeks Branding & setup. 90% more cost-efficient
DocFlowBlockchain-based document management.
Use case & value 100% Secure workflows. Zero third-party risks.
OTC Hawk Arbitrage Bot Book a solution consultWork
450+ projects. 250+ clients. 3 unicorns in portfolio
The first non-custodial wallet built natively for Canton
TON ecosystemA series of improvements for The Open Network
Mining platformEnvironmentally friendly web platform for Bitcoin pool mining
Mantra DAOCommunity-governed DeFi: 60+ staking pools, $23M TVL
Canton TON Web3 & DeFi Digital Assets & Tokenization AI & Data Intelligence IoT & Edge Computing Consulting See all projectsIndustries
Trusted by startups, small businesses, and enterprises
Banking, payments, lending, insurance, capital markets
Real estate software developmentInvestment, property operations, tokenization
Retail & commerce software developmentCommerce, loyalty and fulfillment
Supply chain software developmentTraceability and connected operations
Healthcare software developmentPatient services, data and connected systems
Banking software developmentCore banking, digital channels, payments
Fitness Education Oil & Gas Insurance Construction TravelCompany
From R&D to launch, we bring any of your ideas to life
Engineering partner. Product builder. Since 2007.
Technical experience 19+ years All competencies on board. Scalable team.
AchievementsIndustry recognition & awards.
Delivering real value 4.9 Clutch ratings. 150+ awards
Contact usDiscuss your project.
Quick response 30 min Average reply time. Offices in 6 countries
BlogDive into the latest software trends.
Fresh insights 500+ Articles in blockchain, AI, big data, AR/VR
Team Careers Social responsibility Glossary