From 12b2e9da7379e1e290b89ef22bad2021230e1c88 Mon Sep 17 00:00:00 2001 From: ggnine-jito <122913584+ggnine-jito@users.noreply.github.com> Date: Tue, 9 Jan 2024 13:48:10 -0800 Subject: [PATCH] change min votes, add bck jito realm, add more test crons, change main cron to 6am eastern (#17) --- scripts/governance-notifier.ts | 7 ++++--- vercel.json | 10 +++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/governance-notifier.ts b/scripts/governance-notifier.ts index 0ced60699a..427e4f7174 100644 --- a/scripts/governance-notifier.ts +++ b/scripts/governance-notifier.ts @@ -41,12 +41,14 @@ if (!process.env.MAINNET_RPC) { } export function errorWrapper() { + console.log("Running in errorWrapper") runNotifier().catch((error) => { console.error(error) }) } -const REALM = 'jeet' +const REALM = 'Jito' +const MIN_VOTES_NEEDED = 30_000_000 export async function runNotifier(summaryOnly = false) { console.log('Starting governance notifier') @@ -115,8 +117,7 @@ export async function runNotifier(summaryOnly = false) { votingTokenDecimals ) - const minVotesNeeded = 100000000 - const quorumReached = yesVotes >= minVotesNeeded + const quorumReached = yesVotes >= MIN_VOTES_NEEDED const isSuccess = yesVotes > noVotes && quorumReached const msg = ` diff --git a/vercel.json b/vercel.json index 55ecc80836..c6d3a6ca74 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,15 @@ "crons": [ { "path": "/api/gov-notifier-summary", - "schedule": "59 19 * * *" + "schedule": "0 12 * * *" + }, + { + "path": "/api/gov-notifier-summary", + "schedule": "0 22 * * *" + }, + { + "path": "/api/gov-notifier-summary", + "schedule": "0 23 * * *" }, { "path": "/api/gov-notifier",