Skip to content

Commit

Permalink
remove debug logging + reset indexing time
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Feb 27, 2024
1 parent cc0c0a0 commit 687004d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/liquidationPools.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const fetchPrices = async (networkName, wallet) => {
};

const scheduleLiquidationPoolData = async _ => {
schedule.scheduleJob('31 * * * *', async _ => {
schedule.scheduleJob('56 11 * * *', async _ => {
console.log('indexing liquidation pool snapshots')
const network = getNetwork('arbitrum');
const provider = new getDefaultProvider(network.rpc);
Expand All @@ -108,7 +108,6 @@ const scheduleLiquidationPoolData = async _ => {
const now = new Date();
const client = await pool.connect();
try {
console.log(POSTGRES_HOST, POSTGRES_PORT, POSTGRES_DB, POSTGRES_USERNAME, POSTGRES_PASSWORD.length)
const query = 'INSERT INTO user_pool_snapshots (user_address,assets,snapshot_at) VALUES ($1,$2,$3);';
const data = [
holderAddress.toLowerCase(),
Expand Down

0 comments on commit 687004d

Please sign in to comment.