Smart Contracts
Contract Addresses
RelayerRewardsPool
0x34b56f892c9e977b9ba2e43ba64c27d368ab3c86
XAllocationVoting
0x89A00Bb0947a30FF95BEeF77a66AEdE3842Fe5B7
VoterRewards
0x838A33AF756a6366f93e201423E1425f67eC0Fa7
RelayerRewardsPool
Manages relayer registration, action tracking, and reward distribution.
Registration
Anyone can register as a relayer by calling registerRelayer(). No admin approval needed.
registerRelayer() // Self-register as a relayer (open to anyone)
unregisterRelayer(address) // Admin only (POOL_ADMIN_ROLE)
isRegisteredRelayer(address) -> bool
getRegisteredRelayers() -> address[]Configuration
relayerFeePercentage = 10 // 10% of user rewards
feeCap = 100 ether // Max 100 B3TR per user per round
voteWeight = 3 // Points per vote action
claimWeight = 1 // Points per claim action
earlyAccessBlocks = 432,000 // ~5 days on VeChainReward Distribution
Rewards are claimable when:
The round has ended
All work is done (
completedWeightedActions >= totalWeightedActions)
Key Functions
XAllocationVoting (Auto-Voting Functions)
Auto-voting was added in v8 via the AutoVotingLogicUpgradeable module.
User Functions
Relayer Functions
This function:
Validates early access (registered relayer during the 5-day window)
Gets user preferences, filters eligible apps
Splits voting power equally across eligible apps
Casts the vote
Registers a VOTE action on RelayerRewardsPool (3 weight points)
Snapshot Functions
Auto-voting status is checkpointed: changes take effect from the next round, not the current one.
VoterRewards (Fee Integration)
Fee deduction happens in VoterRewards.claimReward():
Check user had auto-voting enabled at round start (checkpointed)
Calculate raw rewards (voting + GM reward)
If auto-voting:
fee = min(totalReward * 10/100, 100 B3TR)Fee approved + deposited to
RelayerRewardsPool.deposit(fee, cycle)Register CLAIM action for
msg.sender(1 weight point)Net reward transferred to voter wallet
msg.sender calling claimReward() IS the relayer credited for the CLAIM action.
Early Access Windows
During the early access period, only registered relayers can act. Users cannot self-vote or self-claim.
Vote window
~5 days
Round snapshot
Claim window
~5 days
Round deadline
After the early access period, anyone can act — this is the safety net ensuring users always receive their rewards.
Round Lifecycle
Resources
Last updated