Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBIP-10 #671

Merged
merged 2 commits into from
Oct 24, 2023
Merged

EBIP-10 #671

merged 2 commits into from
Oct 24, 2023

Conversation

BrendanSanderson
Copy link
Contributor

@BrendanSanderson BrendanSanderson commented Oct 23, 2023

EBIP-10: Fix Bean to LP Well Convert

Submitter

Beanstalk Community Multisig

Emergency Process Note

Per the process outlined in the BCM Emergency Response Procedures, the BCM can take swift action to protect Beanstalk in the event of a bug or security vulnerability.

Links

Problem

Since BIP-38 was committed and prior to this EBIP, in Wells (i.e., only BEANETH currently), Farmers could Convert Deposited Beans to Deposited LP tokens past peg. Additionally, If a Farmer had enough Deposited Beans to Convert past peg, it was possible for that Farmer to Convert Deposited Beans to Deposited LP tokens up to the total amount of Beans in the Beanstalk contract.

This was because Beanstalk was Converting (1) the amount the user input, rather than (2) the minimum of the amount the user input and the amount required to Convert to peg.

Solution

Upgrade Beanstalk to only allow Converts up to (2).

All changes were reviewed by Cyfrin.

Contract Changes

Convert Facet

The following ConvertFacet is removed from Beanstalk:

The following ConvertFacet is added to Beanstalk:

ConvertFacet Function Changes

Name Selector Action Type New Functionality
convert 0xb362a6e8 Replace Call

Event Changes

None.

Beans Minted

None.

Effective

Effective immediately upon commitment by the BCM, which has already happened.

Base automatically changed from ebip-9 to master October 24, 2023 17:46
@BrendanSanderson BrendanSanderson merged commit 87e0e0e into master Oct 24, 2023
1 check passed
@BrendanSanderson BrendanSanderson deleted the ebip-10 branch October 24, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant