Closed CarlosQ96 closed 1 month ago
The recent changes enhance the project statistics calculation by introducing a new function getQfRoundHistoryMatchingValueUsd
in qfRoundHistoryRepository.ts
to sum matchingFundPriceUsd
for a specific projectId
. This new function is integrated into updateProjectStatistics
in projectService.ts
to improve project.sumDonationValueUsd
computation.
File Path | Change Summary |
---|---|
src/repositories/qfRoundHistoryRepository.ts |
Added getQfRoundHistoryMatchingValueUsd to calculate the sum of matchingFundPriceUsd . |
src/services/projectService.ts |
Updated updateProjectStatistics to incorporate the result of getQfRoundHistoryMatchingValueUsd . |
In the code where values rise, New functions bring a sweet surprise. Matching funds now add their might, Enhancing stats, shining bright. 🐰✨ With every line, we innovate, For projects' growth, we celebrate!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Related to: https://github.com/Giveth/giveth-dapps-v2/issues/3456
Summary by CodeRabbit