The Graph Allocation Optimization Tooling

Hey everyone :wave: ,

we at anyblock analytics have developed a script that allows to calculate the optimal allocation distribution of the stake on the subgraphs.

We are aware that there is only one subgraph at the moment, but this will change in the near future. From that point on, it will be interesting for many ecosystem participants to figure out how best to distribute their allocations to get the greatest indexing reward.

Our script calculates the optimal distribution of allocations, takes into account variable thresholds for creating an allocations script (e.g. 10% higher indexing rewards than the current indexing rewards), consideres parallel allocations and also possible diversification parameters (max x % of allocations on a subgraph).

Furthermore, the script takes into account transaction fees for closing and creating allocations and considers them in the reaching the threshold.

We would be very happy to receive feedback, suggestions for improvement as well as contributions and pull requests. We would love to constantly improve the tool and provide a useful tooling to all of you.

The Github repo can be reached here: GitHub - anyblockanalytics/thegraph-allocation-optimization: Allocation Optimization The Graph

If you have any questions, just leave me a message. :slightly_smiling_face:

10 Likes

This is very cool, I would like to dig into the code when I have time :slight_smile:

Should be very useful for many indexers

1 Like

This is really impressive, thank you for sharing. I look forward to seeing more collaborators contributing to this!