-
Notifications
You must be signed in to change notification settings - Fork 98
[CurvePB] Improve CentralRegistry to support CurvePoolBooster. #2765
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
[CurvePB] Improve CentralRegistry to support CurvePoolBooster. #2765
Conversation
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
| // drop the last entry | ||
| poolBoosters.pop(); | ||
|
|
||
| // centralRegistry can be address(0) on some chains |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
sparrowDom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
aa943c5
into
clement/curvePB-improvement
* 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
Summary
Integrates
CurvePoolBoosterFactorywithPoolBoostCentralRegistryfor centralized tracking and event emission of Curve pool boosters.Changes
IPoolBoostCentralRegistry.sol
CurvePoolBoosterPlainto thePoolBoosterTypeenumCurvePoolBoosterFactory.sol
New Storage:
poolBoosters[]- Array of all pool boosters created by this factorycentralRegistry- Reference to the PoolBoostCentralRegistrypoolBoosterFromPool- Mapping from AMM pool to pool booster entryNew Functions:
removePoolBooster(address)- Governor-only, removes a pool booster from trackingpoolBoosterLength()- Returns count of pool boostersgetPoolBoosters()- Returns all pool booster entriesModified:
initialize()- Now accepts_centralRegistryparametercreateCurvePoolBoosterPlain()- Now stores entry and emits events via central registryNotes:
address(0)allowed for chains without registry)