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

GITC-237: Alters matching pool contribution to be an "on-top" donation #9444

Merged
merged 2 commits into from
Sep 8, 2021

Conversation

gdixon
Copy link
Contributor

@gdixon gdixon commented Sep 7, 2021

Description

This PR implements the interim checkout experience. The matching pool contribution has been altered to be an "on-top" donation.

Refers/Fixes

Fixes: GITC-237

Testing

Tested locally

@@ -1935,7 +1935,7 @@ def psave_contrib(sender, instance, **kwargs):
"from_profile":instance.subscription.contributor_profile,
"org_profile":instance.subscription.grant.org_profile,
"to_profile":instance.subscription.grant.admin_profile,
"value_usd":instance.subscription.amount_per_period_usdt if instance.subscription.amount_per_period_usdt else instance.subscription.get_converted_amount(False),
"value_usd":instance.subscription.amount_per_period_usdt if instance.subscription.amount_per_period_usdt else instance.subscription.get_converted_amount(True),
"url":instance.subscription.grant.url,
"network":instance.subscription.network,
"txid":instance.subscription.split_tx_id,
Copy link
Member

Choose a reason for hiding this comment

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

^ why are making the changes here ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think is to ignore the gitcoin fee there as is already on the value ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah thats right @octavioamu! Passing ignore_gitcoin_fee=True will make sure we get the full contribution value (without deducting the matching pool contrib)

Copy link
Contributor

@zlsgh zlsgh left a comment

Choose a reason for hiding this comment

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

Also tested locally 👍

@octavioamu octavioamu merged commit 0b4991a into stable Sep 8, 2021
jeremyschuurmans pushed a commit that referenced this pull request Sep 22, 2021
#9444)

* GITC-237: Alters matching pool contribution to be an "on-top" donation

* Puts polygon mention behind staff flag
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.

4 participants