Giveth / giveth-dapps-v2

This project is the aggregation of GIVeconomy and Giveth.io DApps in a single repo
https://staging.giveth.io
GNU General Public License v3.0
61 stars 34 forks source link

Show GIVbacks rewards amount available in the round SO FAR - backend changes #4678

Closed laurenluz closed 1 week ago

laurenluz commented 4 weeks ago

right now, on the givbacks page, we have a 1 million GIV harded coded number for every GIVbacks pool.

I would like to communicate to the user something more meaningful... the max GIV that will go out so far, based on the number of donations in the round.

So at the start of the round, with no donations, this number would be 0, but if we had A LOT of donations... the absolutely maximum would be 1 million GIV.

this would help us to communicate to users about the givbacks lottery and encourage more donations.

@mohammadranjbarz wdyt? would it be possible? can you give an estimate on the work that would be required or ask questions here

mohammadranjbarz commented 3 weeks ago

Yeah it's possible, and would take 2-3 days. Just a question, I think it's better to set a cache for it to not put load on our DB , updating amount in every hour is good?

laurenluz commented 3 weeks ago

yep! once an hour is great!