@@ -35,6 +35,14 @@ export const useFetchStakingRewards = () => {
35
35
return
36
36
}
37
37
38
+ // TODO:
39
+ // - Integration of new Merkle contract + TACo automated rewards here.
40
+ // TLDR: stakingRewards = merkle_rewards + taco_rewards
41
+ // See https://github.com/threshold-network/token-dashboard/issues/756
42
+ // - There's a more efficient way to check Merkle's claimed rewards.
43
+ // See https://github.com/threshold-network/token-dashboard/issues/765
44
+ // - Note also that TACo rewards now accrue on each block. They can be
45
+ // calculated via TACoApp.availableRewards(address _stakingProvider)
38
46
const claimedEvents = await getContractPastEvents ( merkleDropContract , {
39
47
eventName : "Claimed" ,
40
48
fromBlock : DEPLOYMENT_BLOCK ,
@@ -71,10 +79,14 @@ export const useFetchStakingRewards = () => {
71
79
claimedRewardsInCurrentMerkleRoot . has ( stakingProvider )
72
80
) {
73
81
// If the JSON file doesn't contain proofs for a given staking
74
- // provider it means this staking provider has no rewards- we can skip
75
- // this iteration. If the `Claimed` event exists with a current merkle
82
+ // provider it means this staking provider has no Merkle rewards -
83
+ // we can skip this iteration.
84
+ // TODO: ^ But there's going to be TACo rewards
85
+
86
+ // If the `Claimed` event exists with a current merkle
76
87
// root for a given staking provider it means that rewards have
77
- // already been claimed- we can skip this iteration.
88
+ // already been claimed - we can skip this iteration.
89
+ // TODO: ^ Same, there can be TACo rewards
78
90
continue
79
91
}
80
92
0 commit comments