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

re-enable free kudos for Gitcoin Quests/Grants #6745

Merged
merged 5 commits into from
Jun 4, 2020

Conversation

owocki
Copy link
Contributor

@owocki owocki commented May 31, 2020

A few weeks ago, i noticed that with high gas prices on the eth network, the kudos minter was burning $200 per day in gas fees.

so i introduced a change to require people to pay their own gas, which would cut down the costs.

but following up on that today, it looks like this has really hurt the number of quest players, see below:

Screen Shot 2020-05-30 at 9 54 14 PM

so i'm introducing this PR, which introduces a "not submitted" state to the kudos transfer object, wherein the kudos will be submitted to one's profile immediately, but not to their web3 wallet until the ethereum network isnt super expensive anymore.

hopefully this approach reaches the twin goal of keeping gitcoin's costs down AND also keeping quest usage up

from testing:
Screen Shot 2020-05-30 at 9 55 23 PM

@codecov
Copy link

codecov bot commented May 31, 2020

Codecov Report

Merging #6745 into master will increase coverage by 0.92%.
The diff coverage is 3.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6745      +/-   ##
==========================================
+ Coverage   26.70%   27.62%   +0.92%     
==========================================
  Files         293      294       +1     
  Lines       27845    29035    +1190     
  Branches     4108     4430     +322     
==========================================
+ Hits         7435     8021     +586     
- Misses      20144    20699     +555     
- Partials      266      315      +49     
Impacted Files Coverage Δ
app/grants/views.py 16.47% <ø> (ø)
app/quests/helpers.py 20.00% <ø> (ø)
...evenue/management/commands/submit_pending_kudos.py 0.00% <0.00%> (ø)
app/kudos/views.py 14.18% <6.66%> (-0.27%) ⬇️
app/dashboard/models.py 51.98% <25.00%> (+2.69%) ⬆️
app/app/urls.py 83.07% <0.00%> (-3.13%) ⬇️
app/dashboard/tasks.py 36.48% <0.00%> (-0.50%) ⬇️
app/dashboard/tip_views.py 13.92% <0.00%> (-0.48%) ⬇️
app/dashboard/views.py 10.70% <0.00%> (-0.09%) ⬇️
app/dashboard/helpers.py 14.19% <0.00%> (-0.07%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b817b09...9341c4f. Read the comment docs.

Copy link
Contributor

@danlipert danlipert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one question about the commented out section

if profile.bulk_transfer_redemptions.filter(coupon=coupon).exists():
error = f'You have already redeemed this kudos.'
return None, error, None
#if profile.bulk_transfer_redemptions.filter(coupon=coupon).exists():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually want to remove this check or were these comments accidentally left in?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that should be there :P

@thelostone-mc thelostone-mc merged commit de49a67 into master Jun 4, 2020
@thelostone-mc thelostone-mc deleted the kevin/free_kudos_prices branch June 27, 2020 00:55
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

Successfully merging this pull request may close these issues.

3 participants