Skip to content

Conversation

@clement-ux
Copy link
Collaborator

@clement-ux clement-ux commented Jan 23, 2026

Summary

Integrates CurvePoolBoosterFactory with PoolBoostCentralRegistry for centralized tracking and event emission of Curve pool boosters.

Changes

IPoolBoostCentralRegistry.sol

  • Added CurvePoolBoosterPlain to the PoolBoosterType enum

CurvePoolBoosterFactory.sol

New Storage:

  • poolBoosters[] - Array of all pool boosters created by this factory
  • centralRegistry - Reference to the PoolBoostCentralRegistry
  • poolBoosterFromPool - Mapping from AMM pool to pool booster entry

New Functions:

  • removePoolBooster(address) - Governor-only, removes a pool booster from tracking
  • poolBoosterLength() - Returns count of pool boosters
  • getPoolBoosters() - Returns all pool booster entries

Modified:

  • initialize() - Now accepts _centralRegistry parameter
  • createCurvePoolBoosterPlain() - Now stores entry and emits events via central registry

Notes:

  • Central registry is optional (address(0) allowed for chains without registry)
  • Events are emitted through the registry when available

@clement-ux clement-ux changed the base branch from master to clement/curvePB-improvement January 23, 2026 09:18
@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

❌ Patch coverage is 9.37500% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.62%. Comparing base (57f37c4) to head (14e1a66).
⚠️ Report is 1 commits behind head on clement/curvePB-improvement.

Files with missing lines Patch % Lines
...acts/poolBooster/curve/CurvePoolBoosterFactory.sol 9.37% 29 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                        @@
##           clement/curvePB-improvement    #2765       +/-   ##
================================================================
+ Coverage                         1.49%   39.62%   +38.12%     
================================================================
  Files                              126      126               
  Lines                             5802     5825       +23     
  Branches                          1542     1546        +4     
================================================================
+ Hits                                87     2308     +2221     
+ Misses                            5714     3515     -2199     
- Partials                             1        2        +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@clement-ux clement-ux marked this pull request as ready for review January 23, 2026 09:28
// drop the last entry
poolBoosters.pop();

// centralRegistry can be address(0) on some chains
Copy link
Member

Choose a reason for hiding this comment

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

good catch

Copy link
Member

@sparrowDom sparrowDom left a comment

Choose a reason for hiding this comment

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

LGTM

@clement-ux clement-ux merged commit aa943c5 into clement/curvePB-improvement Jan 23, 2026
11 of 17 checks passed
@clement-ux clement-ux deleted the clement/curvePBFactory-improvement branch January 23, 2026 11:22
clement-ux added a commit that referenced this pull request Jan 23, 2026
* Refactor campaign management functions to require ETH for bridge fees and streamline reward handling

* Add CurvePoolBoosterFactory deployment scripts for Arbitrum and Mainnet

* Implement receive function and update campaign management to handle ETH payments

* Organize CurvePoolBooster folders.

* Fix rounding issues by fetching balance again in fee calculation

* Allow _handleFee to proceed with zero balance without reverting

* [CurvePB] Improve CentralRegistry to support CurvePoolBooster. (#2765)

* Enhance CurvePoolBooster and Factory: Add CurvePoolBoosterPlain.

* move curvePB to dedicated folder
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.

3 participants