What is a DEX (Uniswap, Curve), and why spot markets matter for liquidation
What is a DEX (Uniswap, Curve), and why spot markets matter for liquidation
A DEX, short for decentralized exchange, is a venue for trading crypto assets that runs entirely on smart contracts rather than through a company that holds your funds and matches your orders. Uniswap, Curve, and Balancer are the largest examples. Trade directly from your own wallet, against a pool of assets other users have deposited, with no account, no custody handoff, and no order book operator standing in the middle.
How it works
Most DEXs use an automated market maker (AMM) model instead of a traditional buy-and-sell order book. Liquidity providers deposit a pair of assets, say ETH and USDC, into a shared pool, and a pricing formula (Uniswap's classic version multiplies the two reserve quantities together and keeps that product constant) sets the exchange rate based on the pool's current balance. Buy ETH from the pool, and you're adding USDC and removing ETH, which shifts the ratio and pushes the price up for the next buyer. The formula, not a matched counterparty, is what sets your execution price.
Curve specializes the same idea for assets that are supposed to trade near a fixed ratio to each other, like two different dollar stablecoins, using a pricing curve that's flatter near the peg, so large trades between similarly priced assets cause far less price impact than Uniswap's general-purpose formula would.
Liquidity providers earn a cut of every trade's fee in exchange for supplying the pool, but they also bear "impermanent loss," the risk that the pool's asset ratio drifts unfavorably compared to just holding the two assets separately, a real cost that a lot of yield-seeking depositors underweight until they experience it firsthand.
Why it matters
DEXs are where crypto's actual spot price gets discovered and where a lending protocol goes to sell collateral during a liquidation. When a borrower's position crosses its liquidation threshold, the protocol (or a keeper acting on its behalf) needs to sell the seized collateral fast, and it typically does that directly against DEX liquidity. If the DEX pool for that asset is thin, the sale itself moves the price down further, worsening the very liquidation it's trying to execute cleanly, a feedback loop protocol designers spend real effort accounting for.
That's why DEX liquidity depth, not just an asset's market cap or exchange volume, is a core input to how conservatively a lending protocol has to set its collateral parameters. Thin spot liquidity means a liquidation could fail to fully recover the loan, even if the collateral's "price" on paper looked adequate the moment before.
Where this shows up in Rekord
DEX liquidity depth for a given collateral asset directly informs the LTV and liquidation parameters Rekord sets for that market. For how liquidations actually execute, see Margin call and liquidation mechanics in crypto-collateral lending.