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

Curve Pool Booster for L2 #2389

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft

Conversation

clement-ux
Copy link
Collaborator

@clement-ux clement-ux commented Feb 10, 2025

Description

The current CurvePoolBooster (CPB) has been deployed and works for gauge that are on Ethereum mainnet. As Votemarket is only deployed on L2s, CPB used the CampaignRemoteManager contract to interact with Votemarket on L2 and create/manage bribes.

But for gauge that are already on L2, it will be more efficient to directly use the Votemarket on L2, no need to bridge message!

So this implementation of CPB is a simplified version that directly interact with Votemarket.

Code Change Checklist

To be completed before internal review begins:

  • The contract code is complete
  • Executable deployment file
  • Fork tests that test after the deployment file runs
  • Unit tests *if needed
  • The owner has done a full checklist review of the code + tests

Internal review:

  • Two approvals by internal reviewers

@clement-ux clement-ux changed the title Curve Pool Booster L2 Curve Pool Booster for L2 Feb 10, 2025
Copy link

github-actions bot commented Feb 10, 2025

Warnings
⚠️ 👀 This PR needs at least 2 reviewers

Generated by 🚫 dangerJS against 5a1ba5d

Copy link

codecov bot commented Feb 10, 2025

Codecov Report

Attention: Patch coverage is 0% with 63 lines in your changes missing coverage. Please review.

Project coverage is 50.60%. Comparing base (e766fbb) to head (f5bd19b).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...ts/contracts/strategies/CurvePoolBoosterDirect.sol 0.00% 63 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2389      +/-   ##
==========================================
- Coverage   50.96%   50.60%   -0.36%     
==========================================
  Files          92       93       +1     
  Lines        4529     4592      +63     
  Branches     1203     1223      +20     
==========================================
+ Hits         2308     2324      +16     
- Misses       2217     2264      +47     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

/// @title CurvePoolBooster
/// @author Origin Protocol
/// @notice Contract to manage interactions with VotemarketV2 for a dedicated Curve pool/gauge.
contract CurvePoolBoosterDirect is Initializable, Strategizable {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we should probably move these contracts into their own directories. They're not Vault strategies, so don't really belong here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any suggestion for the the directory name?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ain't sure. But since we are naming the contracts "PoolBooster", we can probably use the same as the name of the directory as well

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.

2 participants