Skip to content

Commit

Permalink
actually post to discord this time ...
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Jun 25, 2024
1 parent 9b6914a commit 68ec480
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 @@ -58,7 +58,6 @@ const getVaultManager = async _ => {

const scheduleLiquidation = async _ => {
const network = getNetwork('arbitrum');
console.log(`/${process.env.WEBHOOK_TOKEN}/`)

// checks for undercollateralised vaults and liquidates
schedule.scheduleJob('6,36 * * * *', async _ => {
Expand Down Expand Up @@ -86,7 +85,7 @@ const scheduleLiquidation = async _ => {
});

// posts liquidation info to discord
schedule.scheduleJob('40 * * * *', async _ => {
schedule.scheduleJob('10 * * * *', 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 68ec480

Please sign in to comment.