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",