-
Notifications
You must be signed in to change notification settings - Fork 99
[CurvePB] Improve CurvePoolBoosterBribesModule #2789
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c45875c
[CurvePB] Enhance pool reward calculation by adding gauge and LP toke…
clement-ux 5477540
[CurvePB] Improve CurvePoolBoosterBribesModule
clement-ux 3cee873
[CurvePB] Make manageBribes fully configurable per pool
clement-ux 7573f65
[CurvePB] Rename POOLS to pools
clement-ux 94262a8
[CurvePB] Revert when removing a pool that does not exist
clement-ux aea558b
[CurvePB] Add duplicate check and use calldata for pool lists
clement-ux 3d9c56d
[CurvePB] Make additionalGasLimit configurable
clement-ux 5df3be9
[CurvePB] Use calldata for manageBribes parameters
clement-ux c7fef2a
[CurvePB] Add additionalGasLimit to deployment script
clement-ux c11f2bf
[CurvePB] Fix lint: shorten inline comment exceeding max line length
clement-ux affc595
[CurvePB] Update poolBooster task for new manageBribes signature
clement-ux 84b65ef
[CurvePB] Add zero address check in _addPoolBoosterAddress
clement-ux b8548e7
[CurvePB] Add max value check for bridge fee
clement-ux 99f7335
[CurvePB] Add max value check for additional gas limit
clement-ux 245b8e9
[CurvePB] Rename length to pbCount in _manageBribes
clement-ux 36e39d4
[CurvePB] Rename pools to poolBoosters to avoid confusion with AMM pools
clement-ux ac9652b
Merge branch 'master' into clement/improve-CurvePBBribeModule
clement-ux fed1b11
Reorder deployment number
clement-ux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| const addresses = require("../../utils/addresses"); | ||
| const { deploymentWithGovernanceProposal } = require("../../utils/deploy"); | ||
|
|
||
| module.exports = deploymentWithGovernanceProposal( | ||
| { | ||
| deployName: "173_improve_curve_pb_module", | ||
| forceDeploy: false, | ||
| reduceQueueTime: true, | ||
| deployerIsProposer: false, | ||
| proposalId: "", | ||
| }, | ||
| async ({ deployWithConfirmation }) => { | ||
| const safeAddress = addresses.multichainStrategist; | ||
|
|
||
| const moduleName = `CurvePoolBoosterBribesModule`; | ||
| await deployWithConfirmation( | ||
| moduleName, | ||
| [ | ||
| safeAddress, | ||
| // Defender Relayer | ||
| addresses.mainnet.validatorRegistrator, | ||
| [ | ||
| "0xFc87E0ABe3592945Ad7587F99161dBb340faa767", | ||
| "0x1A43D2F1bb24aC262D1d7ac05D16823E526FcA32", | ||
| "0x028C6f98C20094367F7b048F0aFA1E11ce0A8DBd", | ||
| "0xc835BcA1378acb32C522f3831b8dba161a763FBE", | ||
| ], | ||
| ethers.utils.parseEther("0.001"), // Bridge fee | ||
| 1000000, // Additional gas limit for cross-chain execution | ||
| ], | ||
| "CurvePoolBoosterBribesModule" | ||
| ); | ||
| const cCurvePoolBoosterBribesModule = await ethers.getContract(moduleName); | ||
|
|
||
| console.log( | ||
| `${moduleName} (for ${safeAddress}) deployed to`, | ||
| cCurvePoolBoosterBribesModule.address | ||
| ); | ||
|
|
||
| return { | ||
| actions: [], | ||
| }; | ||
| } | ||
| ); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.