Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup API for NICE token calculations #18

Closed
divine-comedian opened this issue Jun 14, 2022 · 2 comments
Closed

setup API for NICE token calculations #18

divine-comedian opened this issue Jun 14, 2022 · 2 comments
Assignees

Comments

@divine-comedian
Copy link
Contributor

divine-comedian commented Jun 14, 2022

from my discussion w/ @mohammadranjbarz

The purpose of this API is to collect donations of certain whitelisted tokens to a certain project on giveth in a given time period and tell us the total sum of token donations for each individual donor to the whitelisted project and tell us how many NICE tokens we should mint for each donor

it will accept these parameters:

  • start date
  • end date
  • whitelisted tokens
  • projectId
  • NICE minting ratio

and it will return 2 CSV files

the 1st with just data needed for distribution:
distribution:

  • donor address
  • NICE tokens to receive
  • token Symbol (NICE)

the 2nd with more complete donation data for review/analysis:

  • donor address
  • eligible donation date
  • eligible donation currency
  • eligible donation amount
  • projectId
  • NICE tokens earned for donation
@MoeNick
Copy link
Member

MoeNick commented Jun 26, 2022

Please add your planning poker estimate with ZenHub @mohammadranjbarz

@divine-comedian
Copy link
Contributor Author

tested this out and checked the nice eligible donations against the regular givbacks eligible donations, looks to be capturing all the right data!
you can see some of the work I did comparing results here:
https://docs.google.com/spreadsheets/d/1JHdNW45KNf5h1mcf4ZiIMqe-vkl6Q_RwtC0KnT1IStU/edit?usp=sharing

the csv file outputs are working well too! Calling this done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants