FeedProjects
Developers
Settings
๐ŸŽ‰ A new chapter begins: Boardroom has joined Agora
Learn more
protocol logo
Explore / Projects
Beanstalk Farms Budget

Proposals

Members

Information

Create Proposal

Beanstalk Farms Budget

ProposalsMembersInformation
Proposal
Back to Proposals
closedEnded 2 years ago ยท Snapshot (Offchain)

BFBP-C-11: Fund Codehawks Competitive Audit for Seed Gauge System

By 0xE5cA...F72fa0

Proposer

Guy

Summary

Fund a Codehawks competitive audit of the final version of the Seed Gauge System. Use 94,500 Beans from the Audit Fund to pay for the audit.

Context

Itโ€™s no secret that the Seed Gauge System has taken longer to develop and secure than initially expected. For reference, the Cyfrin audit of the Seed Gauge System started in mid-October 2023, which was notably before (1) the 2 critical vulnerabilities reported by whitehats that were fixed in EBIP-10 and EBIP-13 and by definition, before (2) findings from the audit were reported by Cyfrin. Beanstalk Farms paid 60,000 Beans this audit per BFCP-C-10.

As a result of (1), it seems clear that decentralized security programs with aligned incentives for security researchers (like the Immunefi bug bounty program) are essential to securing Beanstalk. However, bug bounty programs typically only secure code after it is deployed on-chain when there are assets at risk. Given the nature of competitive audits, where there are many more auditors and a prize pool that is only rewarded to valid reports, they seem like a preferable pre-deployment alternative to private company audits for securing large, complex codebases like Beanstalk. This was also illustrated by the vulnerabilities found in the Basin Code4rena audit despite having been audited by 2 private companies beforehand.

As a result of (2), significant design changes to the Seed Gauge System were necessary. In particular, how Beanstalk was measuring Deposited BDV (i.e., what it measures to determine how to allocate Seed rewards to different whitelisted assets) in the initial version of the code was not sufficiently manipulation resistant. Thus, a 2 Season lag in Earned Bean distribution to new Deposits was implemented alongside the removal of the Vesting Period (added in BIP-36) altogether. Since then, there have also been additional changes such as infrastructure improvements to the Deposit Whitelist. In total these changes have resulted in >30% of the code in the final version being new or changed since the initial audit. For these reasons, another audit of some form is necessary.

Finally, the Seed Gauge System is complex and is likely to be the most significant change to the Beanstalk codebase in 2024 (amongst all of the other RFCs). A more proactive approach to security spending (i.e., pre-deployment, rather than post-deployment in the form of bug bounties) is the best path forward.

Proposal

Codehawks is a competitive audit platform facilitated by Cyfrin.

The audit competition is scheduled to start next week and last 3-4 weeks. The prize pool for the audit will be $90,000. Cyfrin typically charges a 25% platform fee on the prize pool to facilitate Codehawks competitions, but has decreased the fee to 5% for this audit.

After spending the 94,500 Beans proposed in the BFBP, there will be 52,037 Beans remaining in the Audit Fund.

Continue Reading
Connect Wallet to Add Note
0
Votes 3
VoterCast PowerVote & Rationale
0xE5cA...F72fa0
1

For

0xBDec...88c054
1

For

0x1D5f...73067A
1

For

VOTE POWER
0
Connect Wallet
Proposal Status
  • Tue February 20 2024, 07:00 pmVoting Period Starts
  • Thu February 22 2024, 07:00 pmEnd Voting Period
Current Results

1-For

3

DocumentationBrandingContact Us
Home
This Project is Currently Disabled

If you would like to enable it, please checkout below.

Boardroom Subscription

Sign up for an individual subscription (access all projects on the platform)

Subscribe
Enable Project

Enable the entire project for every user

Enable Project
Contact Us