Limiting losses and locking in profits in DeFi leverage trading

In any kind of asset trading, risk management is crucial. To limit losses and lock in profits, traders and investors rely heavily on the most common order types used in trading, like the limit and stop orders. These types of orders are usually executed at a specific set asset price. They are the basis of any trading strategy, with a clear entry or exit point. Crypto traders rely on them and most centralized crypto exchanges offer them, like FTX, Coinbase, or Binance. In DeFi, however, one could hardly find these options for automated trades.  

True DeFi risk management  

Until recently, there were not many risk management options for on-chain, leverage trading using DeFi lending and borrowing protocols. However the DeFi Saver team has started introducing these common order types, used in conventional trading, on top of DeFi lending and borrowing protocols. They were previously best known for their automated liquidation protection options for protocols such as MakerDAO, Aave and Compound, but more recently they started introducing these trading-oriented features such as stop loss, take profit and trailing stop options for decentralized finance protocols on Ethereum.  

DeFi lending protocols have often been used for shorting and longing crypto assets, for example, basically as soon as it was released, MakerDAO became a very popular option for longing ETH, completely non-custodially and fully on-chain. This would be done by users depositing their initial ETH and then using borrowed DAI to buy more ETH and thus increase their exposure and leverage (with DeFi Saver, this can be done in a single transaction, with its unique Boost and Repay features). Having automated, clear stops or limits on trades is essential for such high-risk positions.  

The initial automated strategies were developed for MakerDAO and Liquity protocol. Each automated strategy consists of a combination of triggers and actions that get executed once the trigger condition is fulfilled. To provide an instantaneous reaction to market movements, triggers rely on Chainlink for price feeds and on-chain historical market data, and on 0x for liquidity necessary to make the automated swaps upon position closing. These strategies work as one would expect in traditional trading environment:  

Stop Loss - Fully closes a position once the collateral asset reaches a configured minimum target price. Take Profit - Fully closes a position once the collateral asset reaches a configured maximum target price. Trailing Stop - Fully closes a position once the collateral asset price drops by the configured percentage from its previous peak.  

Making use of the new automated strategies  

Setting up automated strategies is straightforward for all existing MakerDAO and Liquity users. Once users connect their non-custodial wallet in the DeFi Saver app and navigate to the Automate tab in the dedicated protocol dashboards, they'll find the respective available automated strategies. Once enabled, the system will continuously monitor a position and send out the transaction to close it as soon as the trigger condition is met, meaning as soon as the price is hit.  

For Stop Loss or Take Profit, one only needs to select the threshold price below (or above) which they want the position to be closed and the asset to which to be closed (e.g., collateral asset or debt asset). In the case of Trailing Stop, the configuration requires inputting the percentage one would want the stop  

THE SCOOP

Keep up with the latest news, trends, charts and views on crypto and DeFi with a new biweekly newsletter from The Block's Frank Chaparro

By signing-up you agree to our Terms of Service and Privacy Policy
By signing-up you agree to our Terms of Service and Privacy Policy

price to be below the market peak and the asset to which to close the position. While Stop Loss and Take Profit are static strategies, Trailing Stop is a dynamic and slightly more advanced strategy. A trailing stop follows any upward market movement and each new price peak moves the stop price higher, but as the direction changes, it will close the position at a percentage-based level from the market peak instead of a specific set price. Using it, one can take advantage of the favorable market direction while having a stop that would minimize losses, and gradually lock in more profits as long as market doesn't move against their position.  

Making use of more than one strategy is possible for the same position. For example, Stop Loss can be combined with Take Profit to minimize the loss and lock in profit. On the other hand, a Trailing Stop is an excellent method for both but can also be combined with a static Stop Loss so one can even further minimize the potential losses in case of a market downturn.  

With DeFi Saver devoted to DeFi principles of providing trustless and non-custodial features, users remain in full ownership of their assets at all times. By enabling any of the provided automated strategies, the user is granting the system the permission to execute the needed transaction if and only if the user's configured trigger condition is fulfilled, with verification done fully on-chain, powered by the system’s smart contracts.  

The team is also very keen on providing these features on L2s where transaction fees can be many times lower. The next step for the team is to launch these automated strategies for Aave v3 on Arbitrum and Optimism, which are two L2 networks that DeFi Saver is actually already live on, with Aave v3 support and some of the older automation options available. The goal of the project has always been to be available and accessible to any users regardless of position size and the team is looking forward to providing more and more features within these growing L2 ecosystems.  

DeFi Saver is an all-in-one dashboard for creating, managing and tracking your DeFi positions with automatic liquidation protection and leverage management options. So far, the application has saved thousands of users from liquidation and helped users handle over 115,000 transactions and over $7 billion in trade volume.

 

This post is commissioned by DeFi Saver and does not serve as a testimonial or endorsement by The Block. This post is for informational purposes only and should not be relied upon as a basis for investment, tax, legal or other advice. You should conduct your own research and consult independent counsel and advisors on the matters discussed within this post. Past performance of any asset is not indicative of future results.


© 2023 The Block. All Rights Reserved. This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.