
Requirements
Before you begin, ensure you have the following:- An RPC endpoint to Berachain
- $BERA to process the transaction
Operator Addressof the validator wanting to change their commission- Foundry
- BeraChef Contract Address:
0xdf960E8F3F19C481dDE769edEDD439ea1a63426a
How validator commissions are updated
When Incentives are activated, all commission rates for Validator Incentives are defaulted to 5% — meaning Validators receive 5% of all Incentives. This is defined byDEFAULT_COMMISSION_RATE in BeraChef.sol.
For a validator to change their commission rate, they must first queue the change, wait for the commissionChangeDelay (which has a maximum of 16,382 blocks), and then activate the new commission. If a commission rate is already queued, it must be activated before a new commission rate can be proposed.
Option A - Change validator commission using Foundry
The following walks you through updating the Validator Commission rate via Foundry’s CLIcast.
Step 1 - Get current validator commission rate
Step 2 - Queue new validator commission rate
Determine the amount you would like to queue:Step 3 - Verify queued validator commission rate
Step 4 - Activate queued validator commission rate
This can only be done after the
commissionChangeDelay has passed, and this can be executed
by anyone.