Skip to content

Commit

Permalink
add morning cron for discord liquidation data report
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Jun 25, 2024
1 parent 68ec480 commit 63c480d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/liquidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const postToDiscord = async content => {
'Content-Length': data.length,
},
};
console.log(options.path);

const req = https.request(options, (res) => {
res.on('data', (d) => {
Expand Down Expand Up @@ -85,7 +84,7 @@ const scheduleLiquidation = async _ => {
});

// posts liquidation info to discord
schedule.scheduleJob('10 * * * *', async _ => {
schedule.scheduleJob('55 7 * * *', async _ => {
console.log('logging liquidation info');
const { manager, wallet, provider } = await getVaultManager();
const EUROs = await getContract(network.name, 'EUROs');
Expand Down

0 comments on commit 63c480d

Please sign in to comment.