xrchz / rocketsplit

Withdrawal address contract for splitting Rocket Pool node rewards
GNU General Public License v3.0
4 stars 3 forks source link

Updates to ClaimIntervals component. #11

Closed nickgs closed 10 months ago

nickgs commented 11 months ago

This PR includes various updates to the ClaimIntervals component outlined below:

  1. Updated the Merkle Distributor address key
  2. Updates to data types for contract call values (Number casts on array creations in useContractReads)
  3. Batching eth_log calls to retrieve cids for claim intervals. This gets around node request limits.
  4. Updates to IPFS fetching. Using cloudflares gateway. Found this much faster than the ipfs.io one.

This should get us to the point where we are retrieving a full set of claimable reward intervals and a list of minipool addresses for a given node.

The next step is to use this information to display a user interface to build the required requests to the Rocketsplit address to distribute rewards.