Markets on shared state
A centralized exchange keeps the order book on a server it controls. Users ask, and the server decides what filled. An on-chain market posts the rule in a program. Anyone who can pay the fee can call it, and every other program on the same chain can call it too. That last property is composability. A lending pool can accept a receipt from a trading pool, and a third program can liquidate one using the other, in the same transaction.
Composability is why these systems feel like a single market instead of a folder of apps. It is also why a bad price in one pool becomes a bad price everywhere that trusted it. The mechanism and the contagion are the same wire.
Pricing without a dealer
The constant-product pool is the simplest automated market maker. Two reserves, x and y, stay on the curve x · y = k. A buyer adds one asset and removes the other. The price moves because the reserves moved, not because a dealer updated a quote. Larger trades walk further along the curve and pay more. That slippage is the fee the pool charges for being willing to trade at any size, at any moment.
Concentrated liquidity tightens the same idea. A provider posts inventory across a price interval instead of across every possible price. Inside the interval the pool has more depth. Outside it, that inventory is idle and the trade walks into someone else’s range, or into nothing. The provider earns more fees when the price stays nearby, and holds more of the falling asset when it does not. The mechanism did not remove inventory risk. It let the provider choose where to take it.
Order books never left. On a chain that can cheaply match a bid and an ask, a central limit order book is just another program: bids, asks, and a rule for which price clears. Solana runs both styles side by side. The mechanism question is the same either way. Who is allowed to update a quote, how fresh the quote is, and what a trade does to the next person’s price.
Credit, collateral, and liquidation
On-chain credit is usually overcollateralized because the lender cannot sue, call, or know who the borrower is. A borrower posts collateral, draws a debt asset, and pays an interest rate that rises as the pool’s cash is used up. If the collateral’s value falls through a threshold, the position may be liquidated: someone else repays the debt and takes the collateral at a discount.
The discount is the incentive that keeps the protocol solvent. It is also the start of a cascade. Liquidators sell the collateral into the same pools that set its price, the price falls, and the next position crosses its threshold. A utilization curve that looked calm in a spreadsheet becomes a feedback loop the moment the collateral and the debt are thin on the same chain.
Liquid staking adds a receipt. You delegate an asset, receive a token that stands for the claim, and the rest of DeFi treats that token as collateral. The receipt is only as liquid as its market, and only as sound as the delegation underneath. If the delegated stake is slashed, delayed, or governed by a key the receipt cannot see, the token’s price is a story the chain has not caught up with yet.
The oracle is the market’s eye
A lending program does not know the outside world. It marks collateral to a price someone pushes on-chain. If that price is a spot read from a thin pool, a trader can move the pool, borrow against the fiction, and leave. If the price is a published feed, the questions move upstream: how many sources, how stale is too stale, who can pause the feed, and who holds the key that replaces it.
Time-weighted averages and delayed updates make manipulation more expensive. They also make liquidations late. Every oracle is a choice between being lied to quickly and being right too slowly to save a position. There is no feed that removes that trade. There are only feeds whose failure mode you have bothered to name.
Who is paid to order the block
A swap that walks a curve leaves a trail. Anyone who can place a transaction just before it, and another just after, can take the difference. That is the ordinary shape of MEV: value that belongs to the right to order state changes. Searchers bid for that right. Users experience it as a worse price than the quote they signed.
Later designs try to hand the value back, or at least to make the auction explicit. Batch auctions clear many intents at one price. Solvers compete to fill an outcome the user signed, rather than a route the user had to assemble. Private orderflow sends the trade to a builder instead of the public mempool. Each of these is a relocation of ordering power. The mechanism note makes the general point: shared state plus a single proposer produces a market for order, whether or not the interface shows it.
How these systems fail together
The dangerous diagram is short. Collateral is priced by a pool. The pool is the asset being liquidated. The liquidator is paid in the same block that moves the price. A governance key can change the collateral factor, the oracle, or both, and the timelock is shorter than the time it takes a holder to exit. None of these require a novel exploit. They require reading the wiring.
A serious reading of a protocol names the assets, the price source, the liquidation rule, the keys that can change those rules, and the block producer who can reorder the calls. If a document skips one of those, it is a brochure.
What this page will not do
It will not tell you which pool to fund, which receipt to lever, or which chain is “the future of finance.” Yield is a payment from someone. Sometimes it is a fee from traders. Sometimes it is a subsidy. Sometimes it is the premium you earn for being the person who eats the bad debt. The mechanism tells you which of those you are looking at. It does not tell you the future price.
This is a technical explanation. It is not financial, legal, or security advice, and it is not a recommendation to use any protocol.