Skip to content

Commit

Permalink
Merge pull request #108 from GeneralMagicio/fixIssueInRoundCapsForBat…
Browse files Browse the repository at this point in the history
…chMinting

change round caps to be cumulative for ea rounds in batch configs
  • Loading branch information
ae2079 authored Oct 24, 2024
2 parents 19a58f6 + 79b700a commit e735d3c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/scripts/runFundingPotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,17 @@ async function generateBatchFile(batchNumber: number) {
},
VESTING_DETAILS: getStreamDetails(isEarlyAccess),
LIMITS: {
INDIVIDUAL: (round.roundUSDCapPerUserPerProject || '5000').toString(), // Default to 5000 for individual cap
INDIVIDUAL: (
(isEarlyAccess
? round.cumulativeUSDCapPerUserPerProject
: round.roundUSDCapPerUserPerProject) || '5000'
).toString(), // Default to 5000 for individual cap
INDIVIDUAL_2: isEarlyAccess ? '0' : '250', // Only required for QACC rounds
TOTAL: (round.roundUSDCapPerProject || '100000').toString(), // Default to 100000 for total limit
TOTAL: (
(isEarlyAccess
? round.cumulativeUSDCapPerProject
: round.roundUSDCapPerProject) || '100000'
).toString(), // Default to 100000 for total limit
TOTAL_2: isEarlyAccess
? '0'
: (round.roundUSDCloseCapPerProject || '1050000').toString(), // Only required for QACC rounds
Expand Down

0 comments on commit e735d3c

Please sign in to comment.