This project has a endpoint to calculate the GIVback rewards.
-
The calculation formula inspired by https://github.com/Giveth/givbacks-scripts
-
This is the notion notes about how we distribute the givback tokens https://www.notion.so/Spec-GIVbacks-MVP-2d6335964e5b414082e41d7df89f9b3d
-
It implemented for resolving this issue Giveth/GIVeconomy#39
Node 10 or higher
git clone https://github.com/Giveth/givback-calculation.git
cd givback-calculation
npm i
cp .env.example .env
npm start
- Browse http://localhost:3000/api-docs
You just need to run docker-compose-develop.yml, and you dont need any dependency
docker-compose -f docker-compose-develop.yml up
It's the environment for calculate givback from aggregate donations fo https://giveth.io and https://trace.giveth.io