BIP-20: Migration of Balances

Proposed: June 14, 2022

Status: Passed

Link: Snapshot


Proposer

Beanstalk Farms

Summary

Problem

As a result of the April 17, 2022 governance exploit, Beanstalk is in a corrupted state. The DAO has already approved the structure of the restart via BFP-72. The Barn Raise began on June 6, 2022. Upon completion of the Trail of Bits and Halborn audits, the DAO will be able to vote to Replant Beanstalk. Migrating the Beanstalk state from its current state to the necessary state to Replant Beanstalk is a complicated process that will involve multiple transactions.

In accordance with BFP-67, all of the exploiters Deposits, Stalk, Seeds and Roots have already been removed. That transaction is here.

Proposed Solution

There are several steps and transactions required to migrate Beanstalk from its current state to the pre-Replant state.

Distribute Unripe Beans

  1. Deploy Unripe Bean token
  2. Distribute non-Deposited Unripe Beans
  3. Remove all Deposited Beans and redistribute them in the form of Deposited Unripe Beans

Distribute Unripe LP

  1. Deploy Unripe LP Token
  2. Distribute non-Deposited Unripe LP Tokens
  3. Remove all Deposited LP Tokens and redistribute them in the form of Deposited Unripe LP Tokens

Those with Circulating or Withdrawn LP pre-exploit will receive LP based on the BDV of the token at the pre-exploit block:

Bean 3 Metapool Curve: 0.992035 Bean LUSD Plain Pool Curve: 0.983108 Bean:Eth Uniswap V2 Pool: 119,894,802.186829

Final setup

  1. Haircut Stalk, Seeds, Roots

Rationale

Performing the migration in multiple steps will facilitate the simplest, safest and fastest migration in anticipation of Beanstalk being Replanted. Requiring a BIP for each step would delay Replanting.

Effective

Publius and Beanstalk Farms will begin migration as soon as possible after either:

  1. A two-thirds supermajority is reached; or
  2. The voting period ends and more than half of the total outstanding Stalk as of block 14602789 (pre-exploit block) votes in favor of the BIP.

Quorum

106,664,695 Stalk