Skip to content

Commit 3b4b794

Browse files
committed
fix(typo): claiming rewards guide
1 parent cfad301 commit 3b4b794

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

docs/network/fsp/guides/claiming-rewards.mdx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ sidebar_position: 1
88
import Tabs from "@theme/Tabs";
99
import TabItem from "@theme/TabItem";
1010

11-
Claiming rewards directly via smart contracts follows this flow:
11+
This guide shows how to claim Flare rewards directly via smart contracts, using the published per-epoch Merkle distributions.
1212

13-
1. **Discover claimable reward epochs** (onchain reads via `RewardManager` + `FlareSystemsManager`).
14-
2. **Fetch the reward distribution data** for each claimable epoch (`reward-distribution-data-tuples.json`) from public repositories.
15-
3. **Extract your claim tuple + Merkle proof** for the correct `beneficiary` and `claimType`.
16-
4. **Submit a single onchain transaction** calling `RewardManager.claim(...)` with one or more claim structs.
13+
You will:
14+
15+
- read the claimable reward epoch range onchain,
16+
- fetch the distribution tuples JSON offchain,
17+
- extract your Merkle proof + claim tuple,
18+
- submit `RewardManager.claim(...)`.
1719

1820
:::warning[Reward claim period]
1921

@@ -27,16 +29,18 @@ Learn more about how [signing](/network/fsp/weights-and-signing) and [rewards](/
2729

2830
1. **Wallet + gas:** A wallet that can sign transactions on the target network, funded with enough native token to pay gas.
2931
2. **RPC access:** An RPC endpoint for the chosen network (you can use any RPC listed on the [Network](/network/overview) page).
30-
3. **Beneficiary address (depends on claim type):**
31-
- **DIRECT:** `beneficiary` must be the **signing policy address**.
32-
- **FEE:** `beneficiary` must be the **identity address**.
33-
4. **Contracts:** Addresses can be found in the [Flare Contract Registry](/network/guides/flare-contracts-registry):
32+
3. **Contracts:** Addresses can be found in the [Flare Contract Registry](/network/guides/flare-contracts-registry):
3433
- [`FlareSystemsManager`](/network/fsp/solidity-reference/IFlareSystemsManager)
3534
- [`RewardManager`](/network/fsp/solidity-reference/IRewardManager)
3635
- [`ClaimSetupManager`](/network/solidity-reference/IClaimSetupManager)
37-
5. **Recipient address:** The address that will receive the rewards (`recipient`).
38-
6. **Reward distribution data access:** You must be able to fetch per-epoch `reward-distribution-data-tuples.json` from the official distribution locations on GitHub or GitLab.
39-
7. **Wrap option:** `wrapRewards` is `true` unless explicitly set to `false`.
36+
4. **Recipient address:** The address that will receive the rewards (`recipient`).
37+
5. **Reward distribution data access:** You must be able to fetch per-epoch `reward-distribution-data-tuples.json` from the official distribution locations on GitHub or GitLab.
38+
6. **Wrap option:** `wrapRewards` is `true` unless explicitly set to `false`, i.e. on Flare Mainnet you will receive `WFLR`.
39+
7. **Beneficiary address (depends on claim type):**
40+
| Claim type | `claimType` | `beneficiary` must be | Account that must authorize executors |
41+
| ---------- | ----------: | ---------------------- | ------------------------------------- |
42+
| `DIRECT` | `0` | signing policy address | signing policy address |
43+
| `FEE` | `1` | identity address | identity address |
4044

4145
### Recommended: Configure a claim executor and claim recipient
4246

@@ -143,7 +147,7 @@ for (let epochId = start; epochId <= end; epochId++) {
143147

144148
:::tip[Calculating or verifying rewards data]
145149

146-
All rewards scripts are publicly available, and you are encouraged to calculate verify the rewards data yourself.
150+
All rewards scripts are publicly available, and you are encouraged to calculate/verify the rewards data yourself.
147151
The data for the rewards is published on [flare-foundation/fsp-rewards](https://github.com/flare-foundation/fsp-rewards) and the instructions for how to calculate them are [here](https://github.com/flare-foundation/FTSO-Scaling/blob/main/scripts/rewards/README.md#public-reward-data).
148152

149153
:::

0 commit comments

Comments
 (0)