Skip to content

Commit

Permalink
comment estimate matching formula
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed May 31, 2023
1 parent dfc4201 commit e217d5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/qfRoundService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import {
getQfRoundTotalProjectsDonationsSum,
} from '../repositories/qfRoundRepository';

// // Setup a divisor based on available match
// let divisor = match / summed;
// // Multiply matched values with divisor to get match amount in range of available funds
// for (let i = 0; i < newData.length; i++) {
// newData[i].match *= divisor;
// }
export const calculateEstimateMatchingForProjectById = async (
projectId: number,
): Promise<number | null> => {
Expand Down

0 comments on commit e217d5d

Please sign in to comment.