Skip to content

chore: bepolia -> main - #34

Merged
github-actions[bot] merged 12 commits into
mainfrom
bepolia
Jul 7, 2026
Merged

chore: bepolia -> main#34
github-actions[bot] merged 12 commits into
mainfrom
bepolia

Conversation

@sj448

@sj448 sj448 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

bearmigiano and others added 12 commits May 12, 2026 16:24
* chore: devnet all in one deployment script

* fix: lint

* fix: role granting

* chore: update predicted addresses for devnet

* feat: add deployed addresses verification

* feat: add missing RewardVaultHelper deployment

* fix: update honeyFactoryPythWrapper

* add setter call

* nit

* fix warning unused variable

---------

Co-authored-by: bar-bera <bearbaresco@berachain.com>
* feat: pol-v-next

* feat(pol-v-next): Fix BGT block reward computation by removing boost dependency (#82)

* feat: introduce a fixed reward emission and deprecate parameters for reward computation and events from BlockRewardController.

* Removed minBoostedRewardRate, boostMultiplier, and rewardConvexity parameters and their associated setters and events from IBlockRewardController and BlockRewardController.
* Removed related errors in IPOLErrors.
* Simplified reward calculation logic in getMaxBGTPerBlock and processBlockReward functions.

* fix: update max reward calculation to include baseRate

* chore: fix tests and scripts by removing deprecated parameters

* Removed minBoostedRewardRate, boostMultiplier, and rewardConvexity from BlockRewardController and related contracts.
* Updated scripts and tests to reflect the removal of these parameters.

* lint

* fix: change visibility of _rewardConvexity to internal

* fix: reintroduce function to avoid breaking changes

* chore: versioning

* feat: remove deprecated functions

* feat(pol-v-next): Update BlockRewardController to mint WBERA instead BGT as emission token (#99)

* feat: update BlockRewardController to mint WBERA instead BGT as emission token

* Add a new initialization function to zero deprecated state variables.
* Added a VERSION constant to BlockRewardController and updated the initialize function to set the WBERA token contract.
* Make the contract payable.
* Enhanced reward processing logic to handle minting and redeeming based on contract balance.

* lint

* fix: tests

* fix: rbac and zero address check

* chore: update stale natspec

* fix: tests

* lint

* feat(pol-v-next): add emission token management to the Distributor contract (#100)

* feat: add emission token management to the Distributor contract

- Introduced `setEmissionToken` function to update the emission token address.
- Added `EmissionTokenSet` event to notify changes in the emission token.

* lint

* chore: versioning

* feat(pol-v-next): RewardVault dual reward token management - Graceful migration (#104)

* feat: dual reward token management

* fix: tests

* feat: reward token graceful migration

* lint

* chore: versioning imports

* lint

* feat: override rewardToken() to return WBERA immediately post-upgrade, before lazy migration triggers

* lint

* fix: shadowed declaration

* chore: optimization

* fix: naming convention

* feat: add IWBERA interface and update RewardVault to use it

* test: add RewardTokenMigration test to validate BGT and WBERA allowance consumption

* feat(pol-v-next): Reward vault helper output token (#106)

* feat: add reward claiming with desired output token

* fix: native claim

* fix: update WBERA_ADDRESS to be payable and simplify withdrawal logic

* feat(pol-v-next): incentive re-routing (#108)

* feat: incentive rerouting

* lint

* fix: remove unused events

* chore: gas optimization

* feat: update reward vault factory

* fix: tests

* chore: versioning

* fix: script

* feat: rename incentives collection event

* feat: update event parameters

* fix: update natspec

* refactor: update IPOLErrors import paths and remove deprecated errors

* docs: nit

* chore: update IWBERA interface

* chore: use IWBERA interface instead of WBERA

* chore: remove debug logs

* refactor: update tests to use emissionToken instead of WBERA for reward processing

* refactor: rename bgtIncentiveFeeCollector to incetiveTokensCollector in RewardVault tests

* fix: cache contract address out of the loop

* fix: emit event

* feat: devnet protocol upgrade script

* feat: implement PoLUpgrader contract for atomic upgrades of PoL implementations

* feat: emit RewardRateChanged event on reward rate update

* chore: remove unused SAFE_GAS_LIMIT constant from RewardVault contract

* feat: add validation for maximum reward rate during initialization

* refactor: update setEmissionToken to use a constant WBERA address ad unique source of truth

* refactor: remove WBERA parameter from BlockRewardController initialization, using a constant address instead

* refactor: update BlockRewardController upgrade to use encodeWithSignature for clarity

* refactor: enhance PoLUpgrader contract to deploy implementations in constructor and streamline upgrade process

* refactor: reduce POLUpgrader size

* fix: stack to deep

* refactor: simplify upgrade function in PoLUpgrader by using structured parameters for proxies and implementations

(solve stack to deep while running coverage)

* feat: add zero address validation for delegateStake and stakeOnBehalf functions in RewardVault contract

* feat: implement burnExceedingBalance function in BlockRewardController to handle excess native balance

* fix: update reward rates bounds

* refactor: remove setters for reward rate and base rate from BlockRewardController, replacing them with constants

* refactor: change public constants to internal constants

* fix: Add Post Deposit Supply Check In LST Factory  (#110)

* implement minor fixes

* split WBERA balance instead of payoutAmount

* add tests

* nit

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: barny <32982922+sj448@users.noreply.github.com>

* nit

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: barny <32982922+sj448@users.noreply.github.com>

* nit

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: barny <32982922+sj448@users.noreply.github.com>

* revert incentiveCollector changes

---------

Signed-off-by: barny <32982922+sj448@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* allow manager role to claim reward in paused state

* fix: remove unused import

* fix(devnet): align DeployDevnet script with pol-v-next

- Remove rate constants used as PoL params (BASE_RATE, REWARD_RATE, MIN_BOOSTED_REWARD_RATE,
  BOOST_MULTIPLIER, REWARD_CONVEXITY, BGT_INCENTIVE_FEE_RATE).
- Drop the _setPOLParams() call in _configure (no longer exists in ConfigPOL).
- Call blockRewardController.initialize() V2 reinitializer after POLDeployer so
  WBERA is wired and deprecated rate/boost slots are cleared.
- Call distributor.setEmissionToken() to flip the emission token from BGT
  (set by V1 init) to WBERA.
- Replace the removed setBGTIncentiveDistributor / setBGTIncentiveFeeCollector /
  setBGTIncentiveFeeRate factory wiring with the new
  setIncentiveTokensCollector(bgtIncentiveFeeCollector).
- Wire sWBERA on RewardVaultHelper via setSWBERA(wberaStakerVault).
- Add _deployWBERAStakerWithdrawReq phase: deploys WBERAStakerVaultWithdrawalRequest
  and wires it on WBERAStakerVault via setWithdrawalRequests721 so withdrawals
  function.

* chore: updated predicted addresses

* fix: lint

---------

Signed-off-by: barny <32982922+sj448@users.noreply.github.com>
Co-authored-by: barny <32982922+sj448@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: barny <barny@berachain.com>
* feat: add last aggregation timestamp

Updated the contract to include logic that checks the last aggregation timestamp during reward claims to prevent stale distributions

* chore: predict addresses
* pin action to sha

* updating with current SHA hashes

* add permissions blocks and pin bun version from PR 120
* add missing implementation deploy scripts

* refactor: generalize pol upgrade scripts with shared base contracts

* lint

* chore: revert UpgradePoL.s.sol
* Add renovate.json

* Update Renovate configuration to extend local config

Signed-off-by: qtipbera <194121515+qtipbera@users.noreply.github.com>

* feat: add baseBranchPatterns to Renovate config

* fix: lint

* fix: correct baseBranchPatterns to baseBranches

---------

Signed-off-by: qtipbera <194121515+qtipbera@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qtipbera <194121515+qtipbera@users.noreply.github.com>
Co-authored-by: Bearmigiano <bearmigiano@berachain.com>
* feat: update maximum commission rate to 10%

* chore: predict addresses
* feat: withdrawal from all reward vaults

* chore: predict addresses

* docs: improve withdrawAllFor natspec for clarity

* tests: enhance withdrawAllFor tests with fuzzing and additional scenarios
* versioning

* refactoring

- Rename files
- Rename events
- Fix imports
- Fix tests and scripts

* chore: predict addresses

* lint

* rename script and add missing upgrade script
@sj448
sj448 requested a review from a team as a code owner July 7, 2026 14:50
@github-actions
github-actions Bot merged commit 1a6890d into main Jul 7, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants