DeFi Basics
Smart Contracts, DEXs, Lending, Oracles, Yield, and Cross-chain Liquidity

What is DeFi?
DeFi is a set of blockchain-based financial services that use smart contracts instead of traditional intermediaries. It can support trading, lending, borrowing, liquidity provision, governance, and other on-chain financial activity, but it also introduces risks from code, collateral, oracles, liquidity, bridges, and market volatility.
Crypto markets offer a range of mechanisms and methods to trade crypto. Customers may choose to trade on centralized or decentralized platforms, and there are pros and cons associated with each. Here we look at the key components of the crypto market: the venues, actors, and financial products involved in driving price action.
We will consider the main features of crypto markets and what drives them, along with the various risks that traders should know about. Please note this piece is purely informative and should not be relied upon as a substitute for professional financial, legal or tax advice.
What you will learn
Below is a summary of the lessons in the course. For a detailed walk-through of each topic, please complete the interactive course.
Course introduction
Provides context around the range of venues, execution mechanisms, actors, products and associated risks in the crypto market.
Lesson 1 - Crypto Exchange Types
Looks at the differences between CEXs and DEXs, and discusses order books, AMMs and liquidity pools.
Lesson 2 - Crypto Trading Pairs and Settlement
Describes the base and quote currencies within a pair, and the difference between on- and off-chain trade settlement.
Lesson 3 - Key Order Types
Introduces the primary order types used to trade crypto (i.e. market, limit, stop, etc.) and some additional terms to be familiar with.
Lesson 4 - Longs, Shorts and Borrowed Exposure
Discusses the notion of going long or short crypto, using margin and trading on perpetual futures products.
Lesson 5 - Risks Associated with Derivatives
Considers the implications of highly leveraged positions and the impact of futures and options on the wider market.
Lesson 6 - Further Market Actors and Risks
Explores some of the other key market participants and additional forms of market abuse.
Lesson 7 - Raising Capital in Crypto
Presents an overview of the role played by VCs, PEs and alternative fundraising techniques in the crypto sector.
Types of Crypto Exchange
As mentioned above, crypto can be traded via either Centralized or Decentralized Exchanges.
As their name suggests, CEXs provide a service akin to a standard trading account. Customers will typically hold crypto with the CEX, which provides a venue to facilitate trades. In doing so, CEXs bridge the gap between one or more blockchains and their end-user base.
Alternatively, with DEXs, customers generally do not need to transfer their crypto into a centrally managed exchange account. Trading can take place directly from the customer's own wallet, most commonly facilitated via smart contracts.
Matching Buyers and Sellers
Once we step away from the distinction between CEX and DEX, there are several mechanisms to bring together demand and supply for a given asset. Most obviously, many crypto exchanges will operate an order book. Users submit orders specifying the price at which they wish to purchase or sell the relevant asset. When compatible buy and sell orders are available, the exchange can match them and execute a trade.
A second approach is seen on many DEXs, where an AMM is employed. Liquidity pools comprise crypto assets deposited into smart contracts. When a user wishes to transact against these, they interact with the pool, at a price dictated by a mathematical function and the available liquidity.
Trading Pairs and Trade Settlement
Similar to FX, crypto is quoted in terms of a pair. For example, if someone buys the BTC/USDT pair, they will receive BTC and pay in USDT. BTC is the base currency and USDT is the quote currency, meaning the pair's price expresses how much USDT is required to purchase one BTC. Once a customer understands the composition of a trading pair, they will know what currency they are acquiring, giving up and at what price.
Finally, we must distinguish how a trade will be settled. CEXs typically maintain internal ledgers of their customers' holdings and execute trades without recording each transaction on the blockchain. On-chain transfers generally occur when assets enter or leave the exchange, while trades within the platform can be processed internally. On many DEXs, trades are executed and settled through smart contracts on the relevant blockchain, although parts of the order-matching or routing process may happen off-chain. The former approach will therefore tend to offer greater speed, whereas on-chain settlement is subject to the throughput and cost of the underlying blockchain.
Orders and Other Terminology
Three common order types form the basis of the language used by crypto traders. A 'market' order instructs the platform to buy or sell immediately at the best available prices, although the final execution price will depend on available liquidity. With a 'limit' order, the trader specifies the maximum price they are willing to pay or the minimum price they will accept. Finally, a 'stop' order triggers another order once a certain price threshold is reached, although this does not guarantee execution at the trigger price.
There are further terms that traders will come across to denote their typical style of trading, such as 'scalping', 'swing' or 'buy and hold'. Again, these are simply descriptive and should not be construed as prescriptive.
Going Long, Short and Borrowed Exposure
A natural extension of the discussion above is that customers can take long or short positions on a crypto asset. Going long means taking a position that benefits if the asset appreciates in value, often by purchasing it directly. Conversely, a short position enables a trader to profit from a decline in the asset's price, although losses can arise if the price moves in the opposite direction.
By using borrowed funds or margin, a customer can increase their exposure beyond the capital they initially commit. While this can lead to greater returns, it also magnifies potential losses. Perpetual futures ('perps') are another product designed to allow traders to take exposure to the future price movements of an asset without a fixed expiry date. These use periodic funding payments between long and short positions to help keep contract prices aligned with the underlying market. Depending on the funding rate and their position, traders may either pay or receive funding.
Derivatives and Systemic Risk
If a large proportion of the market is exposed to high levels of leverage, the likelihood of forced liquidations can increase during sharp price movements. In turn, the buying or selling triggered by these events may place further upward or downward pressure on the market, potentially creating a liquidation cascade. Futures and options can provide a degree of protection when used to hedge existing exposures (and can of course be used to increase speculative exposure). However, they too carry considerable risk.
Additional Market Participants
It will be apparent from the preceding discussion that customers require access to sufficient liquidity in order to efficiently enter and exit positions. On CEXs, market makers play an important role by submitting buy and sell orders, helping to maintain liquidity and reduce spreads. Similarly, many DEXs depend upon third parties supplying crypto to their liquidity pools, in return for a share of the trading fees generated.
There are a number of further considerations relating to the operation of crypto markets. Some of the more prominent forms of market manipulation are:
-
Pump and dump
-
Spoofing
-
Wash trading
And finally, there are a number of other actors and entities that play a part in the crypto market: crypto custodians, information aggregators, government and supervisory authorities, and ETF issuers.
Raising Funds for Crypto Ventures
Finally, we touch upon some of the ways in which crypto businesses can secure finance. As with any industry, venture capital (VC) and private equity (PE) firms can invest in crypto-related ventures and provide a range of services beyond pure capital injection. Furthermore, there has been significant innovation in how crypto-native businesses can access funding. The sale of a project's native token(s) can occur via an ICO, allowing it to raise capital through token distribution. The advent of DEXs and CEXs has also enabled IDOs and IEOs respectively. In some cases, groups of investors can coalesce to form a DAO to collectively raise and deploy funds.
Summary
-
There are a number of key elements to understand in order to navigate the crypto market, spanning the range of venues, execution and settlement mechanisms, market actors and financial products.
-
Both CEXs and DEXs are capable of supporting customers, but differ materially in respect of custody and transparency.
-
Order books match compatible buy and sell orders, while AMMs use liquidity pools and algorithms to determine trading prices.
-
The decision to settle trades on- vs. off-chain will have material implications for customers.
-
Customers can use borrowing or derivatives to build larger positions, and the prevalence of leveraged exposure can create feedback loops throughout the market.
-
A diverse set of organizations underpin the crypto market, and will continue to evolve over time.
-
Lastly, the range of fundraising avenues open to crypto businesses also warrants careful consideration.
Definitions
Market structure: The various mechanisms, market actors, products, rules and economic incentives governing the trading and pricing of an asset.
Centralized Exchange (CEX): A platform that facilitates trading and will typically hold customer assets or balances in custodial accounts.
Decentralized Exchange (DEX): A platform or protocol that enables customers to conduct trades directly from their wallets, commonly through smart contracts.
Order Book: Records the current set of outstanding bids and offers, allowing compatible buy and sell orders to be matched.
Bid: The price a buyer is willing to pay for an asset.
Offer: The price a seller is willing to accept for an asset.
Automated Market Maker (AMM): Allows trading against a pool of assets, with prices determined by a predefined algorithm.
Liquidity: The capacity to transact in an asset without materially affecting its price.
Slippage: The extent to which a trade's execution price differs from the anticipated price.
Settlement: The process of completing a trade and transferring or recording the resulting asset ownership or balances.
Leverage: The use of borrowed funds or derivatives to increase a customer's market exposure relative to their committed capital.
Perpetual Future: A futures-style instrument that does not have a fixed maturity. Generally uses periodic funding payments to help align its price with the underlying market.
Funding Rate: The rate used to calculate periodic payments between long and short positions in perpetual futures markets. Depending on the rate, either side may pay or receive funding.
Liquidation: The forced closing or reduction of a leveraged position when its available margin or collateral falls below the required threshold.
Market Maker: A firm or entity that provides buy and sell quotes to a market, helping maintain liquidity.
Initial Coin Offering (ICO): A fundraising mechanism through which a project offers tokens to participants in exchange for capital.
Decentralized Autonomous Organization (DAO): A structure allowing members to take collective decisions based on governance rules, which may include token-weighted voting.
Continue learning
After DeFi, useful next topics include NFTs and Gaming, Market Structure, Stablecoins, Scaling & Layer 2s, and the deeper DeFi 201 guide.
Start the full interactive course below
Continue on Campus
Ready to take the full course?
Get access to Campus for free. Create an account to explore courses, track your progress and earn a certificate.
- Build your knowledge
- Track your progress
- Get certified
Campus is a premium platform – start with a free trial. You'll be redirected to Campus to sign in.
Frequently asked questions
DeFi is a financial ecosystem built on blockchain technology that uses smart contracts to enable services such as trading, lending, borrowing, liquidity provision, and governance without relying on traditional intermediaries for every step.
Traditional finance relies on institutions such as banks, brokers, custodians, and clearing systems. DeFi uses smart contracts and on-chain transactions, which can make rules more transparent but also creates code, collateral, oracle, and bridge risks.
A DEX is a decentralized exchange where users can trade through smart contracts, often directly from their wallets, instead of depositing assets with a centralized platform.
An automated market maker is a mechanism that uses liquidity pools and formulas to enable trading without a traditional order book.
Because lending protocols usually do not rely on credit checks or centralized approval. Collateral helps protect lenders and the protocol if a borrower’s position becomes unsafe.
An oracle provides external information, such as asset prices, to smart contracts. Lending and derivatives protocols often need oracles to monitor collateral and calculate risk.
No. DeFi can introduce smart contract, liquidity, liquidation, oracle, MEV, governance, and bridge risks. This material is educational and does not provide investment, trading, tax, or legal advice.







