# Strategy 2: 2x leveraged yield farming, no risk going long/short

The principle of leveraged farming is to match the resources in the hands of users：

1\. Single asset holders think the interest rate of single-asset farming on the lending platform is too low;

2\. Yield framers want to use the assets as collateral and borrow assets for farming to maximize the income.

In fact, there are four ways to open leveraged positions (take BNB/USDT as an example): Own BNB-Borrow USDT (referred to as U), Own USDT -Borrow BNB, Own BNB-Borrow BNB, Own USDT-Borrow USDT.

1. Own-BNB-borrow-USDT: In this case, there’s no risk on long/short, but the impermanent loss is double that of unleveraged yield farming due to the 2X leverage.

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FVdD1DiLiugADbEldeKSX%2FPicture25.png?alt=media\&token=c634c16d-6f87-4272-a441-5f9c22106e54)

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FXxoQ0C1dMIA6KtAWuDQI%2FScreen%20Shot%202021-11-12%20at%207.46.19%20PM.png?alt=media\&token=15014fde-4b92-43fe-bd8a-cded78ca721f)

&#x20; 2\. Own-USDT-borrow-BNB: n this case, there’s no risk on long/short, the impermanent loss is double that of unleveraged yield farming due to the 2X leverage.

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FWzZPTJENiVrVedCunk2U%2FPicture26.png?alt=media\&token=6b52f6d3-6bdd-4ddd-95e3-5e02e6464902)

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FiBtorOcQzpZHQSAfwnAZ%2FScreen%20Shot%202021-11-12%20at%207.48.35%20PM.png?alt=media\&token=d16668ff-22a0-4365-b31c-b61c0d5ae2b7)

&#x20; 3.Own-BNB-Borrow-BNB: The borrowed BNB is converted to USDT before opening the LP position. This effectively is a short position on 1 BNB. The PnL in the table below incorporates both the impermanent loss and the return from the short position on BNB.

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FabX1w22TD7kLHUaHzRqQ%2FPicture27.png?alt=media\&token=d7e2b15e-a7ef-4965-9704-cc7fdf503a0c)

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FJ0hzjp2CqT9DKIpGlw8G%2FPicture28.png?alt=media\&token=5668e78d-c7a8-43f6-9bd9-c87ef027f5fe)

&#x20; 4.Own-USDT-borrow-USDT: Similar to above, the borrowed USDT is converted to BNB before opening the LP position. This effectively is a long position on 1 BNB. The PnL in the table below incorporates both the impermanent loss and the return from the long position on BNB.

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FtEPI8vqypD5rnDA3KSYh%2FPicture29.png?alt=media\&token=d126256d-06ee-47c3-85ee-cd11d7d6a878)

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FkWbztT2i8sgPTMTbBB7C%2FPicture30.png?alt=media\&token=c22776d9-b37f-44b4-8e45-cd1baa2a757a)

*Hint：*

1. Obviously, impermanent loss is larger under the leveraged yield farming positions than unleveraged position. Because of there’s no conversion (swap fees) occurred  when own one and borrow another one, whether it’s own-USDT-borrow-BNB or own-BNB-borrow-USDT options. Users must be careful to select "Default" when closing a position, otherwise they will bear the swap cost of 0.3% and the slippage cost from the MDEX (or PANCAKESWAP) exchange.
2. In the case where own-BNB-borrow-BNB or own-USDT-borrow-USDT, the PnL on the position is monotonically increasing/decreasing with respect to BNB’s/USDT’s  price change. It means that Own BNB-Borrow BNB is short on BNB, Own USDT-Borrow USDT is long on BNB. Note that under own-BNB-borrow-BNB or own-USDT-borrow-USDT options, a 0.3% swap cost will incur at the open of the position.
3. Depending on the depth of the MDEX (or PancakeSwap), large amount positions may cause relatively large slippage if BNB borrows BNB or if USDT borrows USDT. Bagels Finance platform has a function to set the slippage, the default value is 0.5%, and the slippage can be set independently.

![](https://3320645607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfpcGX0cnuFkqZhjHn-%2Fuploads%2FQay8xjUSlnEsAC7V3JDq%2FPicture31.png?alt=media\&token=8a77dbe4-2fee-479c-bcc8-43bb30c55585)
