AIP-14: Close remaining LYF positions on stkBNB-BNB pool to avoid any potential future bad debt

Background:

With the recent temporary depegging of stkBNB, the liquidity pool on PancakeSwap for stkBNB-BNB has reduced in size to ~$480k USD. Moreover, PCS has removed the $CAKE rewards from the pool, making it highly unlikely for the pool to attract any additional TVL. This kind of low liquidity pool poses a higher risk of liquidation and potential bad debt.

There is currently ~$435k USD farming in LYF through Alpaca Finance on the stkBNB-BNB pool.

Rationale:

By closing out remaining positions, we help secure the platform for both lenders and in-active leveraged yield farmers. If you still have active positions in this pool, we highly recommend that you close them now.

We outline recommend the steps below to close your positions, based on their current debt ratio:

Your position’s debt ratio < 50%

  • Your position already has enough BNB to pay back the loan in your farming assets. You can close your position without incurring any swap fees.

  • We highly recommend that you close your position using the “Minimize Trading” option to avoid any swap.

  • This means you will receive stkBNB back, which you can then turn into BNB, if you wish, through the unstaking process or swapping at a small amount at a time to avoid the large price impact.

Your position’s debt ratio > 50%

  • Your position DOES NOT have enough BNB in the farming assets to pay back the loan. This means if you close your position, a swap is required.

  • If your position size is large, the price impact incurred could be very high. In this scenario, we highly recommend you perform an “Add Collateral” function to bring down your debt ratio to <= 50% before closing your position.

  • When adding collateral, we recommend you add stkBNB and BNB in equal proportion to minimize any swaps required.

Implementation:

We will follow a similar approach to AIP-4.2 where we closed out positions on WaultSwap.

Below please find the implementation plan:

  1. We will upgrade the stkBNB-BNB farming contract to allow for a privileged address (i.e., dev controlled address) to liquidate any remaining positions in the vault.

  2. We will change the liquidation method. Instead of swapping non-borrowed tokens in the DEX (this could cause bad debt due to low liquidity), we will use oracle price and let the new liquidation strategy deduct the necessary amount from our wallet as determined by the Oracle with a 5% discount.

  3. Farming positions will now have all base assets and be able to pay back debt and close the positions

  4. Any remaining value after debt repayment is sent back to users

In Step #2, Alpaca Core team will provide the BNB liquidity required to close the positions. We will then unstake the stkBNB to receive back BNB. To eliminate the risks from BNB price fluctuation, the team will have short position to hedge the BNB exposure during the 2-weeks unstaking period. If there is any profit after (in USD terms), we will use them to buyback ALPACA and burn.

Voting

This proposal will be a simple YES or NO vote.

  • A YES vote would close out any remaining positions on the stkBNB-BNB pool.

  • A NO vote would leave the positions opened.

Resolution:

  • Community votes to close out any remaining positions on the stkBNB-BNB pool.

  • All remaining positions were closed on January 9th 2023.

  • In total, 31.36 stkBNB were repurchased from all the positions (Transactions can be found here.)

  • All the positions are unwinded, from the operation, there was a profit of 1,421.97 ALPACA which will be used for burn (Transaction can be found here.)

References:

Last updated