What is Leverage?
How it works
In decentralized finance, leverage typically starts with over-collateralized borrowing. A user deposits a crypto asset (e.g., ETH) into a lending pool on a protocol like Aave or Compound. Based on the collateral factor, they can borrow a stablecoin or other asset up to a certain loan-to-value (LTV) ratio. The borrowed funds are then used to purchase more of the original asset or a different asset on a DEX such as Uniswap. This creates a leveraged long or short position. The position is tracked through a smart contract that monitors the collateral level.
To maintain the position, the borrower must keep the LTV ratio below the liquidation threshold. If the value of the collateral falls or the borrowed asset rises, the LTV may exceed the threshold, triggering a liquidation. In liquidation, a third party repays the loan and receives the collateral plus a penalty. Protocols like Aave automatically execute liquidations via smart contracts. The exact mechanics vary: some platforms offer built-in leverage through borrowing and swapping in one transaction (e.g., leveraged yield farming), while others use perpetual futures markets like dYdX or GMX where leverage is embedded in the derivative contract.
Leverage can also be achieved without direct borrowing using leveraged tokens or flash loans. Leveraged tokens (e.g., from FTX or Binance) are ERC-20 tokens that automatically rebalance to maintain a target leverage ratio, removing the need for active management. Flash loans, available on protocols like Aave or dYdX, allow uncollateralized borrowing of arbitrary amounts, provided the loan is repaid in the same transaction. This enables complex strategies such as arbitrage or liquidation bots, but such loans are typically not used for long-term leveraged positions due to the single-transaction constraint.
Why it matters
Leverage amplifies both potential profits and risks in DeFi, enabling capital-efficient strategies for traders and yield farmers. It increases market liquidity and depth but also introduces systemic risks, such as cascading liquidations during market downturns. Understanding leverage is crucial for risk management, as improper use can lead to total loss. Regulations and protocol design continue to evolve, with features like isolation markets on Aave or leveraged tokens aiming to mitigate risks while allowing users to access amplified exposure.
Real-world examples
Aave and Compound are primary lending protocols where users deposit collateral to borrow assets for leveraged positions. For instance, depositing ETH to borrow USDC and then swapping that USDC for more ETH on a DEX creates a leveraged long on ETH. On dYdX, users can trade perpetual futures with up to 20x leverage on major markets, while GMX offers perpetual-style leveraged trading against its liquidity pool. Leveraged tokens on Binance or FTX (now defunct) historically allowed passive leveraged exposure to assets like Bitcoin.
FAQ
What is the liquidation price in leveraged trading?
The liquidation price is the asset price at which your collateral value falls enough to trigger automatic repayment of the loan, resulting in loss of collateral. It depends on your loan-to-value ratio and the protocol’s liquidation threshold.
How does leverage work on DeFi lending platforms?
You deposit collateral, then borrow another asset up to a pre-set percentage of your collateral’s value. Using the borrowed asset to buy more of the collateral (e.g., ETH) increases your exposure. The borrowed amount must remain below the liquidation threshold to avoid forced closure.
What are the risks of using leverage in DeFi?
The main risks include liquidation ( partial or total loss of collateral), market volatility, and protocol risk such as smart contract bugs or oracle failures. Leverage magnifies losses exactly as it magnifies gains, and interest costs on borrowed assets can erode profits over time.
Related terms
Go deeper
Browse the complete crypto glossary to explore related terms and concepts.
Browse Glossary