w3f / staking-rewards-collector

Apache License 2.0
78 stars 32 forks source link

Refactor Code to Allow Easy Network Addition #44

Closed joepetrowski closed 2 years ago

joepetrowski commented 2 years ago

This started as a minor bug fix where I renamed the output directory and it failed to mkdir. Then I started tidying up some other areas that I noticed could be done more effectively.

The major improvement with this refactor is that one can now add new networks simply by filling out a little information in one place (src/networks.js).