Claiming Tokens

Claiming From The App

Users can claim tokens from the button on the top right of,, and

Claiming from the contract directly

There are 3 functions that allow you to claim tokens from the MerkleOrchard.
  • claimDistributions
  • claimDistributionsToInternalBalance
  • claimDistributionsToCallbackContract
The simplest of which, claimDistributions, takes the following arguments:
  • claimer - the address of the account claiming tokens)
  • claims - an array of the claim structs that describes the claim being made
    • distributionId - id of the distribution, generally starting at 1
    • balance - the number of tokens being claimed (in wei), as sourced from the published distributions
    • distributor - the address that added the tokens
    • tokenIndex - the index of the token being claimed (index of the address in the tokens parameter)
    • merkleProof - an array of hashes that prove the validity of the claim
  • tokens - an array of the set of all tokens being claimed, referenced by tokenIndex. Tokens can be in any order so long as they are indexed correctly.
The contract also allows tokens to be claimed to callback contracts, enabling more powerful use cases, such as putting the tokens directly into liquidity pools. The Balancer community is highly encouraged to build custom interfaces that make this easy for users.
Copy link
On this page
Claiming From The App
Claiming from the contract directly