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

Hotfix add matching funds as donations #1190

Merged
merged 7 commits into from
Dec 5, 2023

Conversation

mohammadranjbarz
Copy link
Collaborator

Related to #1186

@mohammadranjbarz
Copy link
Collaborator Author

I just added a button in admin panel to sync donations with distributed matching funds, but we should add some cronjobs for that to call the function daily, or something like that

Relate Donations with Distributed Funds button
Screen Shot 1402-09-14 at 16 02 46

@mohammadranjbarz mohammadranjbarz changed the base branch from staging to master December 5, 2023 12:38
@mohammadranjbarz mohammadranjbarz marked this pull request as ready for review December 5, 2023 12:38
"matchingFundPriceUsd" = 1,
"matchingFundCurrency" = 'WXDAI'
WHERE
id = 2 AND "matchingFund" IS NOT NULL;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are we hard coding the id to 2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have some qf rounds already in our DB and they have qfRoundHistory items in DB, they dont have new fields, so I had to put their ids hard coded here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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


const matchingFundFromAddress =
(process.env.MATCHING_FUND_DONATIONS_FROM_ADDRESS as string) ||
'0x6e8873085530406995170Da467010565968C7C62'; // Address behind donation.eth ENS address;
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets take this as a constant value

Copy link
Collaborator

@jainkrati jainkrati left a comment

Choose a reason for hiding this comment

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

Left a comment. Once resolved we are good to merge

@jainkrati jainkrati merged commit ef27246 into master Dec 5, 2023
1 check failed
@jainkrati jainkrati deleted the hotfix_1186_add_matching_funds_as_donations branch December 5, 2023 14:43
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.

2 participants