-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
record proper usd value of a bounty fulfillment #8488
Conversation
When a bounty fulfillment is created AKA user submits work to a bounty -> the payout_amount is null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code wise LGTM. we can figure out the DRY code later
got it; then we will need to make the usd value on the earning update when
the BF object is updating
…On Thu, Mar 4, 2021 at 9:20 PM Aditya Anand M C ***@***.***> wrote:
***@***.**** approved this pull request.
code wise LGTM. we can figure out the DRY code later
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8488 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD5PCP6Q7MZETFXHWF3WETTCBL2TANCNFSM4YUC6OCA>
.
_________________________________________
gitcoin is live and has generated over $11.1mm for Open Source Software - see
our results <https://gitcoin.co/results>
|
the |
i think so. based on how the |
return self.get_natural_value() | ||
|
||
|
||
def value_in_usdt_at_time(self, at_time): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gdixon so wrapping thus in a try-catch and returning None in the catch might help
Description
https://gitcoin.co/nance2uiuc
that user paid out a $60k bounty, to 20 diff users. and instead of giving credit to the user for one $60k bounty the system did it 20 times.
this PR fixes that by taking the bounty fulfillment amount + creating the earning from that.
but this PR is blocked from being truly useful by the fact that bountyfulfillment.payout_amount is null for most objects in production ( #8486 )
Refers/Fixes
see above
Testing
tested locally