Skip to content
DeVOLTDocs

Leverage

Deposit collateral, borrow against it, and buy more of the collateral. You can go long, go short or run a yield loop. It all happens in one transaction, paid for by a flash loan and filled by whichever aggregator quotes best.

A loop pays while the collateral earns more than the debt costs. Rates move, so whether a loop pays can change. It is shown on the loop, not decided by the leverage you pick. The Leverage page lists every loop, and the ones that pay today come first. The market page of a loop has a panel. It shows what the loop returns in a year at the leverage you choose, next to what the collateral would earn if you held it without leverage. That panel opens the loop whenever opens are available.

The same list also has markets where the collateral and the debt are different assets. They stay on the list for as long as they pay at the leverage shown. These are bets on the price, not only ways to earn yield: the position is long the collateral against the debt, so a fall in that price alone can liquidate it. Each of those rows says what the position is long. Its detail shows how far the price can move against it before it can be liquidated. At the maximum a venue allows, that distance is often none at all. You can borrow in these markets too. There is no separate Borrow list any more, so this is the list where they appear. The Pair control on the list splits them by kind. Correlated shows markets whose collateral and debt are the same asset family. This is also the pair type that pays the lower protocol fee tier. Non-correlated shows the rest.

Long, short or yield

A row on the Leverage list is a long, a short or a yield loop. Which one it is decides what you are betting on.

long
Volatile collateral against a stable debt. You gain if the collateral rises against the debt. You are liquidated if it falls far enough.
short
Stable collateral against a volatile debt. You gain if the borrowed asset falls. You are liquidated if it rises far enough. It is a lending position, not a perpetual. You pay the venue’s borrow rate on it, and it has no funding rate.
yield loop
Collateral and debt are in the same asset family. The price of the pair hardly matters. What matters is whether the collateral earns more than the debt costs.

Starting from what you want to be long

The list of markets is grouped by pair. When people use leverage, they usually know what exposure they want before they know where to fund it. So start from the Collateral filter above the list. You can search in it. Pick an asset and the list shrinks to the markets that lever it, across every chain and venue. You can then sort the rows by what each one returns or by its liquidity.

What happens in the transaction

Your deposit
from your wallet, and the only money you put in
Flash loan
a lender that charges nothing where one holds the token, and one that charges a fee where neither does
the DeVOLT fee is charged on this loan and added to your debt
Swap
whichever aggregator wins the race, at the size you entered
Supply and borrow
the lending market you chose
  • supply what the swap bought, together with your own deposit
  • borrow the loan token against the whole position
Repay the flash loan, in the same transaction. This leg is what makes it a flash loan, not separate steps that can stop half way. If it cannot close, every card above it is undone as though none of it happened. You lose the gas, not the deposit. Where the lender charges a fee, the fee is paid here, in the token that was borrowed. The lender charges it.
The order the contract runs the steps in, without amounts. What each leg is worth depends on your deposit and on the result the swap gives you. Those numbers are in the panel, where they are measured before you sign.

Here is the same loop worked through on a correlated pair. It shows the flash size, the debt and the liquidation price that follow from the inputs.

wstETH collateral, WETH debt
Illustrative inputs
Your deposit: 10 wstETH
Target leverage: 5x
Entry price: 1.2 WETH per wstETH
Collateral yield: 3%
Borrow rate: 2.5%
Liquidation LTV: 90%
Swap fill: at the oracle price
Flash lender: charges nothing
What the calculation returns
Flash loan: 47.76 WETH
DeVOLT fee on it: 0.1%, 0.0478 WETH
Debt after the open: 47.81 WETH
Total collateral: 49.8 wstETH
Liquidation price: 1.07 WETH per wstETH
Net APY at this leverage: 5%
A long position: it is liquidated if the collateral falls to the liquidation price.
The inputs are illustrative and are not a live market: no venue is offering this price, rate or limit. The outputs come from the same calculation the app uses for net yield, liquidation price, flash loan size and the DeVOLT fee, run on these inputs, so the working is the product’s own.
flash
Borrow the loan token with no collateral, for the length of one transaction. Most lenders charge nothing. Aave v3 charges a fee.
swap
Race every aggregator that has a lane on that chain, and take the best result.
supply
Deposit the collateral you bought, together with your own.
borrow
Borrow the loan token against the whole position.
repay
Pay back the flash loan. If any step returns less than needed, the whole transaction reverts and you lose gas, not funds.
  • LiFi
  • KyberSwap
  • Velora
  • Enso
  • Pendle
  • OpenOcean
Every lane the race expects, across all the chains DeVOLT serves. Not every lane works on every chain. If a lane gives no answer, the panel still shows it as a silent lane. It is not left out, because a provider with nothing to offer and a provider that was never asked are different things. This list is read from the same place the race reads it.

What binds the size

The max LTV of the venue sets a limit. But the swap usually limits you first. The leverage you can really open depends on what the aggregators will fill at your deposit size. That is worked out for each deposit, not for each market. A market page shows the contract limit and says clearly that it is not the limit you can open.

Where the flash loan comes from

The lender is chosen for each transaction. The cheapest lender that holds enough for your size is picked, and this is read from the chain again when you sign. A lender whose limit on the swap route the quote cannot avoid, such as Uniswap v4 (no Uniswap v4 hop can run inside its flash loan), is ranked after every other lender that can be used for your size. It is used only when none of those can be, or when the transaction fails in simulation with each of them. A Morpho market always borrows from Morpho Blue.

The Execution Plan names the lender your transaction would use. It shows that lender's fee in percent and in dollars at your size, and what the lender holds compared with what you need. It also lists every other lender on the chain, each with a label such as chosen or costlier. The fee shown is read from the chain, not from a copy kept in the app.