Skip to content

Commit

Permalink
also stash the numberOfTiers in status
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckbergeron committed Jun 30, 2023
1 parent 6b64aaf commit 96ebbff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "PoolTogether V5 Command Line Interface",
"author": "PoolTogether Inc",
"license": "GPL-3.0-only",
"version": "0.0.1-beta.20",
"version": "0.0.1-beta.21",
"repository": "https://github.com/pooltogether/v5-cli",
"homepage": "https://github.com/pooltogether/v5-cli",
"bugs": "https://github.com/pooltogether/v5-cli/issues",
Expand Down
8 changes: 2 additions & 6 deletions src/commands/compute/drawPrizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ import {
TierPrizeAmounts,
} from "../../lib/utils/prizeAmounts";

interface TiersContext {
numberOfTiers: number;
rangeArray: number[];
}

/**
* @name DrawPrizes
*/
Expand Down Expand Up @@ -132,7 +127,8 @@ export default class DrawPrizes extends Command {
writePrizesToOutput(outDirWithSchema, claimsWithPrizeAmounts);

const statusSuccess = updateStatusSuccess(DrawPrizes.statusLoading.createdAt, {
prizeLength: claimsWithPrizeAmounts.length,
numberOfTiers: prizePoolInfo.numberOfTiers,
prizeLength: claims.length,
amountsTotal: sumPrizeAmounts(tierPrizeAmounts),
tierPrizeAmounts: mapTierPrizeAmountsToString(tierPrizeAmounts),
});
Expand Down
1 change: 1 addition & 0 deletions src/lib/utils/status.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Status, StatusError } from '../../types'

export interface SuccessStats {
numberOfTiers: number;
prizeLength: number;
amountsTotal: string;
tierPrizeAmounts: any;
Expand Down

0 comments on commit 96ebbff

Please sign in to comment.