Skip to content

Commit

Permalink
v1.1.3 of pt-v5-utils-js was not published properly, using v1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckbergeron committed Apr 22, 2024
1 parent b468d73 commit a6d1ef6
Show file tree
Hide file tree
Showing 3 changed files with 2,225 additions and 4,009 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@ethersproject/bignumber": "^5.5.0",
"@ethersproject/contracts": "^5.5.0",
"@ethersproject/providers": "^5.5.3",
"@generationsoftware/pt-v5-utils-js": "^1.1.2",
"@generationsoftware/pt-v5-utils-js": "^1.1.4",
"@oclif/core": "^3",
"@oclif/plugin-help": "^6",
"@oclif/plugin-plugins": "^4",
Expand All @@ -47,8 +47,7 @@
"lodash": "^4.17.0",
"lodash.pickby": "^4.6.0",
"piscina": "^3.2.0",
"spawn-promise": "^0.1.8",
"yarn": "^1.22.19"
"spawn-promise": "^0.1.8"
},
"devDependencies": {
"@oclif/test": "^3",
Expand All @@ -63,7 +62,7 @@
"shx": "^0.3.3",
"ts-node": "^10.2.1",
"tslib": "^2.3.1",
"typescript": "^4.4.3"
"typescript": "^4.9.5"
},
"oclif": {
"bin": "ptv5",
Expand Down
8 changes: 4 additions & 4 deletions src/lib/utils/getAllPrizeVaultsAndAccountsWithBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export const getAllPrizeVaultsAndAccountsWithBalance = async (

// #4. Get a range of the oldest timestamp we want to start querying at to the current closed draw timestmap
// for use in scoping depositors when querying the Graph
const afterTimestamp = prizePoolInfo.lastDrawClosedAt - maxTierPeriodSeconds;
const beforeTimestamp = prizePoolInfo.lastDrawClosedAt;
const startTimestamp = prizePoolInfo.lastDrawClosedAt - maxTierPeriodSeconds;
const endTimestamp = prizePoolInfo.lastDrawClosedAt;

// #5. Query and populate accounts for each vault
prizeVaults = await populateSubgraphPrizeVaultAccounts(
chainId,
prizeVaults,
afterTimestamp,
beforeTimestamp
startTimestamp,
endTimestamp
);

const numAccounts = prizeVaults.reduce(
Expand Down
Loading

0 comments on commit a6d1ef6

Please sign in to comment.