Skip to content

Commit bf4d3c8

Browse files
committed
f: WIP dashgov.js
1 parent aacb5eb commit bf4d3c8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dashgov.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,17 @@ var DashGov = ("object" === typeof module && exports) || {};
213213
const SUPERBLOCK_INTERVAL = 16616;
214214
const VOTE_LEAD_BLOCKS = 1662;
215215
const PROPOSAL_LEAD_MS = 6 * 24 * 60 * 60 * 1000;
216+
DashGov.PROPOSAL_LEAD_MS = PROPOSAL_LEAD_MS;
216217
DashGov.SUPERBLOCK_INTERVAL = SUPERBLOCK_INTERVAL;
217218

218219
// not used because the actual average at any time is always closer to 157.5
219220
//const SECONDS_PER_BLOCK_ESTIMATE = 155;
220-
DashGov._AVG_SECS_PER_BLOCK = 157.58166827154548;
221+
DashGov._AVG_SECS_PER_BLOCK = 157.5816652623977;
221222

222223
// used to calculate ~5 year (~60 month) averages
223-
const MONTHLY_SUPERBLOCK_01_DATE = "2017-03-05T20:16:00Z";
224+
const MONTHLY_SUPERBLOCK_01_DATE = "2017-03-05T20:16:05Z";
224225
const MONTHLY_SUPERBLOCK_01 = 631408;
225-
const MONTHLY_SUPERBLOCK_61_DATE = "2022-02-26T03:53:00Z";
226+
const MONTHLY_SUPERBLOCK_61_DATE = "2022-02-26T03:53:02Z";
226227
const MONTHLY_SUPERBLOCK_61 = 1628368;
227228

228229
/**
@@ -281,8 +282,8 @@ var DashGov = ("object" === typeof module && exports) || {};
281282
GObj.estimateProposalCycles = function (
282283
cycles = 3,
283284
snapshot = null,
284-
proposalLeadtime = PROPOSAL_LEAD_MS,
285285
secondsPerBlock = 0,
286+
proposalLeadtime = PROPOSAL_LEAD_MS,
286287
) {
287288
let now = snapshot?.ms || Date.now();
288289
let currentBlock = snapshot?.block;

0 commit comments

Comments
 (0)