User earnings are calculated from total bounty amount not payout amount
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 776
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
User earnings are calculated from the total bounty amount not the amount actually paid out. If I post a contest bounty for $20,000 with 4 prizes worth $5,000 each, and award the 4 winners $5,000, each of their profiles will show add $20,000 to their earnings. This data may also be used elsewhere on the site (GMV? Total hackathon prizes?)
**To Reproduce**
Post a contest bounty for $20,000 with 4 prizes worth $5,000 each, award the 4 winners $5,000, and each of their profiles will show add $20,000 to their earnings. This works the same way if you pay out part of the listed amount, pay out via tips, or split payments between teammates.
**Expected behavior**
The platform should track and count the actual amount of money transferred when a payment is made. In the example shared above, each user's profile would add $5,000 each to their earnings.
**Screenshots**
For an example, check out this $60,000 Binance bounty, with ~25 different prizes distributed between $3,000 and $100, and every profile shows $60,000 earned this year or more:
https://gitcoin.co/issue/binancex/Grant-projects/8/100024334
**Desktop (please complete the following information):**
- OS: N/A
- Browser:
- Browser Version:
**Smartphone (please complete the following information):**
- Device: N/A
- OS:
- Browser:
- Version:
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.