FAQ
General

General

What is Pesto?

Pesto is a minimalist, on-chain DeFi protocol that enables users to create independent positions in a single transaction, offering varying degrees of exposure and hedging strategies. The core protocol is immutable, operates without governance, and incentivizes decentralized frontends.

What is the motivation behind Pesto?

Many protocols require starting liquidity pools from scratch, which results in fragmented, shallow liquidity. To solve this, Pesto aims to provide competitive DeFi capabilities, built on top of two of the most robust DeFi protocols, Aave and Uniswap. By leveraging existing liquidity, Pesto circumvents the need to initially fund liquidity pools and avoids contributing to liquidity fragmentation.

Pesto also introduces a new position primitive, called a spread short, which involves simultaneously longing and shorting two different assets in the same position. Opening similar positions on existing protocols requires twice the amount of collateral for the same exposure.

Each Pesto position is independent and has its own Aave account. This means that liquidation risk from one position does not affect other positions. Furthermore, the protocol keeps all funds backing users’ positions on Aave as collateral, lowering liquidation risk and earning interest for users.

What are the key benefits of Pesto?

Ecosystem Benefits

  • Use of deep liquidity from two of the most robust DeFi protocols, Aave and Uniswap. This brings more capabilities to users without exacerbating the liquidity fragmentation problem.
  • Introduction of a decentralized frontend incentive mechanism that other protocols can adopt to increase decentralization, lower legal risks, and improve user experience.

User Benefits

  • Opening or closing a short position via Aave and Uniswap is a one-step process, since Pesto combines borrowing and swapping into one gas-efficient transaction.
  • The ability to open a spread short position to simultaneously long and short two different assets in the same position. Opening similar positions on existing protocols requires twice the amount of collateral for the same exposure.
  • Isolated risk across different positions, meaning that risk from one position does not affect other positions.
  • Earn interest on supplied collateral and the position's long token.
  • Reduced liquidation risk for positions with lower leverage, which means positions can be opened over longer time horizons.
  • Lower operational costs through reduced gas fees and ongoing expenses. Pesto features 25% lower gas fees than GMX, and it leverages Aave borrowing rates, which are significantly lower than perpetual funding rates.

Is the core protocol immutable?

Yes. The core Pesto smart contracts are immutable.

Periphery functionality, such as the protocol fees, is governed by the Pesto DAO.

Is Pesto open-source?

Yes. You can view the code on GitHub (opens in a new tab).

Does Pesto charge any fees?

Yes, please refer to the Fees section for more information.

How does Pesto incentivize decentralized frontends?

There is a small protocol fee charged when users increase a position's size and when they add leverage to a position. A portion of this fee goes to the protocol and another portion is allocated to frontend operators.

Frontend operators can also choose to offer users of their frontend a discount on the protocol fee, which incentivizes users to use their frontend.

This feature was inspired by the Liquity Protocol (opens in a new tab).

What can I do with Pesto?

Three examples of positions that can be created with Pesto are:

  1. Stable Short: short an asset against a stable asset.
  2. Spread Short: short an asset and long a different asset simultaneously.
  3. Stable Long: long an asset against a stable asset.

Users can create as many positions as they wish, independent of each other, and choose any combination of assets supported by both Aave and Uniswap.

A stable short position is most similar to traditional short-selling, where users borrow the asset they want to short, and sell it for a stable asset.

Example: Bearish on BTC? Use USDC as collateral to borrow WBTC, and swap for USDC. If WBTC's value drops, less USDC is required to buy the WBTC to repay the loan. The remaining USDC is profit.

stableShort

A spread short position is a more complex strategy, where users choose to borrow the asset they want to short, and swap it for a non-stable asset. The aim of such a strategy is to profit from the favorable spread between the short asset and the long asset.

Example: Bullish on ETH and bearish on BTC? Use USDC as collateral to borrow WBTC, and swap for WETH. Profit from WETH's rise and WBTC's fall.

spreadShort

A stable long position involves borrowing a stable asset and swapping it for a non-stable asset to hold.

Example: Bullish on ETH? Use WETH as collateral to borrow DAI, and swap for more WETH. If ETH's value rises, you swap it for more DAI than you borrowed, and keep the difference as profit.

stableLong

Why long with Pesto, why not just hold?

Suppose:

  • A user only has 1 WETH
  • 1 WETH = $1,000 at t1t_1
  • 1 WETH = $1,500 at t2t_2

If the user just holds 1 WETH and sells at t2t_2, the profit will be $500.

If the user creates a position on Pesto to long WETH, the following can be done automatically:

  1. Supply 1 WETH as collateral
  2. Borrow 900 USDC
  3. Swap 900 USDC for 0.9 WETH

Now, the user is exposed to the potential gains or losses of 1.9 WETH.

If the user closes the position at t2t_2, where 1.9 WETH = $2,850, the profit would be $950 - interest - fees.

How is liquidation risk mitigated on Pesto across different positions?

Each Pesto position is independent and has its own Aave account. This means that liquidation risk from one position does not affect other positions. Furthermore, the protocol supplies the long token to Aave as collateral by default. This allows users to earn additional interest and improves the health factor of the position's loan, reducing the risk of liquidation.

indPositions