Skip to content

hop-protocol/merkle-drop-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merkle drop framework

Generalized merkle drop framework for rewards

Packages

backend

  • The backend worker that periodically fetches data needed to compute merkle root and then publishes to github

frontend

  • The generalized frontend to view rewards and set merkle roots. It reads locked rewards from merkle data in github and claimable rewards from the chain.

Overview

diagram

Steps

  1. The backend worker frequently polls TheGraph for data of hop transfers.
  2. The backend worker computes the reward amount for each account within a time range.
  3. The backend worker computes the merkle data for the reward amounts.
  4. The backend worker stores the merkle data locally for tracking real time rewards.
  5. The backend worker once a week publishes the merkle data to github.
  6. The backend worker auto-submits a post to hop forum post about the latest published merkle data.
  7. The backend worker serves real time locked rewards via an endpoint for frontend.
  8. The community multisig verifies the latest merkle data using backend docker image.
  9. The community multisig publishes the lates merkle root onchain using generalized frontend.
  10. The frontend displays locked rewards (unpublished rewards merkle root) and claimable rewards (published rewards merkle root onchain) for account.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published