[AIP-12] Handling of bad debt from the recent stkBNB's depeg


As many of you are aware, on 2nd December, there was an exploit on Ankr BNB (aBNBc) which caused a temporary depeg of stkBNB’s price, due to the dumping of aBNBc in pools shared with stkBNB on other protocols, which allowed the exploiter to drain stkBNB and subsequently sell it in other pools. Alpaca Guard worked as intended and managed to save a noteworthy % of positions from liquidation. However, due to the extent and duration of the depeg, some LYF positions on the stkBNB-BNB pairs were still liquidated and the platform incurred some bad debt.

You can read more details from our tweet here: https://twitter.com/AlpacaFinance/status/1598685838686138368

Proposed implementation:

The total bad debt from this incident is 1,587.87 BNB which represents ~0.2% of the lending TVL at the time of the event.

You can see the detailed breakdown of liquidations here: stkBNB-BNB@Block23546085 - Google Sheets

We are putting this up for the discussion to activate the Insurance Plan, so xALPACA holders can vote for if the event fits the conditions to be covered by the Insurance Plan. As a reminder, you can read more about how our Insurance Plan works here: Security - Alpaca Finance

Please note that we’ve discussed with Ankr, pStake, and Binance about if they can do anything to cover the losses from stkBNB, and none of them have given a positive response. So at this point, the Insurance Plan is the only avenue to cover the bad debt.

To summarize the key point, if the Insurance Plan covers this, 50% of the protocol revenue going to Governance will be used to cover this bad debt until it is paid off to BNB lending. The locked ALPCA in governance will not be touched and the remaining 50% of protocol revenue will still be paid out to Governance during this time.

Ultimately, it’s up to xALPACA holders to decide if this event falls under the cover conditions, keeping in mind that fair activation of the Alpaca Insurance Plan is what gives lenders and users of our platform confidence to use it, which ultimately drives all the protocol revenue coming into Governance.

As for any losses to the LYF positions that were liquidated, unfortunately, since the protocol operated as designed during liquidation, it does not fall under the cover terms of the Insurance Plan. So this discussion, and subsequent vote, would only be to cover the aforementioned bad debt to lending.


This AIP will be a simple YES or NO vote. Where the YES vote would activate the insurance plan and start directing 50% of the protocol revenue going to Governance to cover the bad debt until the full amount is paid off.

A NO vote would not activate the insurance plan.


I’m linking to my message in the other thread which wasn’t up long before moving to AIP because it clarifies something relevant


How long will it take to repay 1,587.87 BNB? Just an estimation.