8000 Donation: Feat/donation totals by lachlanglen · Pull Request #58 · PotLock/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Donation: Feat/donation totals #58

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

Merged
merged 6 commits into from
Feb 20, 2024
Merged

Donation: Feat/donation totals #58

merged 6 commits into from
Feb 20, 2024

Conversation

lachlanglen
Copy link
Contributor

Motivation:

Getting totals of donations across the contract was proving very difficult because it required clients to fetch all donations in paginated requests and calculate totals, massively increasing latency in client apps.

Changes:

  • Add total_donations_amount, net_donations_amount, total_protocol_fees and total_referrer_fees to Contract struct
  • Add all of above + total_donations_count to Config
  • Add migration methods & leave commented out for future reference
  • Build Donation contract
  • Update README

@lachlanglen lachlanglen changed the title Feat/donation totals Donation: Feat/donation totals Feb 20, 2024
@lachlanglen lachlanglen merged commit 5fde52b into main Feb 20, 2024
@lachlanglen lachlanglen deleted the feat/donation-totals branch February 20, 2024 16:59
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.

1 participant
0