Skip to content

Commit

Permalink
run liq pool indexing at 22
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Feb 23, 2024
1 parent 3bc08c7 commit 451661b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liquidationPools.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { parseBytes32String, formatUnits } = utils;
const Pool = require('pg-pool');
const { getNetwork } = require("./networks");
const { getContract } = require('./contractFactory');
const { parseEther, formatEther, parseUnits } = require('ethers/lib/utils');
const { formatEther, parseUnits } = require('ethers/lib/utils');
const { WALLET_PRIVATE_KEY } = process.env;

const EUROS_ADDRESS = '0x643b34980E635719C15a2D4ce69571a258F940E9';
Expand Down Expand Up @@ -56,7 +56,7 @@ const fetchPrices = async (networkName, wallet) => {
};

const scheduleLiquidationPoolData = async _ => {
schedule.scheduleJob('18 * * * *', async _ => {
schedule.scheduleJob('22 * * * *', async _ => {
console.log('indexing liquidation pool snapshots')
const network = getNetwork('arbitrum');
const provider = new getDefaultProvider(network.rpc);
Expand Down

0 comments on commit 451661b

Please sign in to comment.