Documentation Index
Fetch the complete documentation index at: https://docs.berachain.com/llms.txt
Use this file to discover all available pages before exploring further.
RewardVaultHelper Claim Flow
RewardVaultHelper lets a staker claim rewards from one or many vaults and choose the output token format.
Supported output tokens:
$sWBERA(configured by admin)- Native
$BERA(address(0)selector)
claimAllRewards(vaults, receiver) transfers accrued $WBERA (the emission ERC-20) to receiver without wrapping or unwrapping.
Contract behavior
claimAllRewards(vaults, receiver)credits $WBERA toreceiver.claimAllRewards(vaults, receiver, outputToken)routes output based on selector (sWBERAor native BERA).- For
$sWBERA, helper approves WBERA to the sWBERA vault and callsIERC4626.deposit. - For native BERA, helper unwraps WBERA with
IWBERA.withdrawand forwards ETH.
Permissions
setSWBERA(address)is gated byDEFAULT_ADMIN_ROLE.- Claim methods are permissionless for stakers.
Worked example (sWBERA and native BERA)
Integration notes
- The helper validates output selectors; unsupported tokens revert.
- Prefer exposing
$sWBERAand native$BERAas the staker-facing claim outputs. - Use Partial Reward Claims for claim-size control.