Skip to main content

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)
The two-argument overload claimAllRewards(vaults, receiver) transfers accrued $WBERA (the emission ERC-20) to receiver without wrapping or unwrapping.

Contract behavior

  • claimAllRewards(vaults, receiver) credits $WBERA to receiver.
  • claimAllRewards(vaults, receiver, outputToken) routes output based on selector (sWBERA or native BERA).
  • For $sWBERA, helper approves WBERA to the sWBERA vault and calls IERC4626.deposit.
  • For native BERA, helper unwraps WBERA with IWBERA.withdraw and forwards ETH.

Permissions

  • setSWBERA(address) is gated by DEFAULT_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 $sWBERA and native $BERA as the staker-facing claim outputs.
  • Use Partial Reward Claims for claim-size control.