Receive Referral Reward

Trader can claim their referral reward via ReferralRewarder contract for each chain.

Contract address

BNB chain: 0xCEaBce51c59d44C8dE3E58599c296787A9523Fc7

Arbitrum One: 0x2100Ed94172b0627D6fe772EB11B16d9Ba1C4CeA

Note: Please use the contract on the exact chain you set to claim reward before

image

Step 1: Get claimable reward

  • Get the reward information via this method

The ipfsHash is decoded IPFS CID of the airdrop detail file. You will need to encode to get the original CID, like this

Eg:

Then use any IPFS gateway to get file content, like this. It is a JSON file with some data. Find your address in the file, something like this

Save the value of the fields id and proof to claim your reward

Step 2: Claim reward

Use this method from the ReferralRewarder contract to claim your reward.

  • _epoch: The epoch number

  • _to: The address to which reward will be sent

  • _index: the id value in step 1

  • _merkleProof: the proof value in step 1

Now the reward should be sent to the address you set.

Last updated