Skip to content

Commit

Permalink
fix: disabled matching cap (#485)
Browse files Browse the repository at this point in the history
fix: matching cap disabled
  • Loading branch information
boudra authored Mar 14, 2024
1 parent 0df6a6e commit 7ed904f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calculator/calculationConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function extractCalculationConfigFromRound(

let matchingCapAmount: bigint | undefined = undefined;

if (round.metadata?.quadraticFundingConfig?.matchingCap !== undefined) {
if (round.metadata?.quadraticFundingConfig?.matchingCapAmount !== undefined) {
// round.metadata.quadraticFundingConfig.matchingCapAmount is a percentage,
// from 0 to 100, and can have decimals
const capPercentage =
Expand Down

0 comments on commit 7ed904f

Please sign in to comment.