Claiming MEZO Rewards
Validators earn MEZO rewards for securing the network. This guide explains how to claim these rewards and manage reward beneficiaries.
Overview
Section titled “Overview”Each validator has an associated gauge in the ValidatorsVoter contract. Rewards are claimed through the ValidatorsVoter contract by specifying the validator’s gauge address.
Each gauge has a single beneficiary address that is authorized to claim rewards. By default, the beneficiary is the validator operator address registered in the Proof of Authority (PoA) contract.
Claiming Rewards
Section titled “Claiming Rewards”To claim your MEZO rewards, follow these steps:
-
Connect your operator address wallet Use the wallet associated with your validator operator address.
-
Determine your gauge address Call
ValidatorsVoter.validatorToGauge()with your operator address as the parameter.- Contract: ValidatorsVoter
- Method:
validatorToGauge(address validator)
-
Claim rewards Call
ValidatorsVoter.claimRewards()with your gauge address as the parameter.- Contract: ValidatorsVoter
- Method:
claimRewards(address gauge)
These steps can be performed through the Mezo block explorer or via a custom script.
Example via Block Explorer
Section titled “Example via Block Explorer”- Navigate to the ValidatorsVoter contract
- Go to the “Read Contract” tab
- Call
validatorToGaugewith your operator address to get your gauge address - Switch to the “Write Contract” tab
- Connect your operator wallet
- Call
claimRewardswith your gauge address
Changing Reward Beneficiary
Section titled “Changing Reward Beneficiary”Validators can designate a different address to receive MEZO rewards. This is useful for separating operational and treasury functions.
To change the reward beneficiary:
-
Connect your operator address wallet Use the wallet associated with your validator operator address.
-
Determine your gauge address Call
ValidatorsVoter.validatorToGauge()with your operator address as the parameter. -
Switch beneficiary Call
Gauge.switchRewardsBeneficiary()with the new beneficiary address as the parameter.- Contract: Your specific Gauge contract (obtained from step 2)
- Method:
switchRewardsBeneficiary(address newBeneficiary)
-
Claim from the new beneficiary After changing the beneficiary, all future claims must be executed using the new beneficiary wallet.
Contract Addresses
Section titled “Contract Addresses”- ValidatorsVoter:
0xe99a9ad5Ed26BD30e4DB25397f378817e9b9515a - PoA Contract:
0x7B7C000000000000000000000000000000000011