Skip to content

Commit a6d1ef6

Browse files
committed
v1.1.3 of pt-v5-utils-js was not published properly, using v1.1.4
1 parent b468d73 commit a6d1ef6

File tree

3 files changed

+2225
-4009
lines changed

3 files changed

+2225
-4009
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@ethersproject/bignumber": "^5.5.0",
3737
"@ethersproject/contracts": "^5.5.0",
3838
"@ethersproject/providers": "^5.5.3",
39-
"@generationsoftware/pt-v5-utils-js": "^1.1.2",
39+
"@generationsoftware/pt-v5-utils-js": "^1.1.4",
4040
"@oclif/core": "^3",
4141
"@oclif/plugin-help": "^6",
4242
"@oclif/plugin-plugins": "^4",
@@ -47,8 +47,7 @@
4747
"lodash": "^4.17.0",
4848
"lodash.pickby": "^4.6.0",
4949
"piscina": "^3.2.0",
50-
"spawn-promise": "^0.1.8",
51-
"yarn": "^1.22.19"
50+
"spawn-promise": "^0.1.8"
5251
},
5352
"devDependencies": {
5453
"@oclif/test": "^3",
@@ -63,7 +62,7 @@
6362
"shx": "^0.3.3",
6463
"ts-node": "^10.2.1",
6564
"tslib": "^2.3.1",
66-
"typescript": "^4.4.3"
65+
"typescript": "^4.9.5"
6766
},
6867
"oclif": {
6968
"bin": "ptv5",

src/lib/utils/getAllPrizeVaultsAndAccountsWithBalance.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ export const getAllPrizeVaultsAndAccountsWithBalance = async (
2929

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

3535
// #5. Query and populate accounts for each vault
3636
prizeVaults = await populateSubgraphPrizeVaultAccounts(
3737
chainId,
3838
prizeVaults,
39-
afterTimestamp,
40-
beforeTimestamp
39+
startTimestamp,
40+
endTimestamp
4141
);
4242

4343
const numAccounts = prizeVaults.reduce(

0 commit comments

Comments
 (0)