Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Actually update time
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMogul committed Sep 26, 2021
1 parent e886d72 commit a6364c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ return balanceBN

let currently_compounding = false

let ts = Date.now();

let date_ob = new Date(ts);
let seconds = date_ob.getSeconds();
let minutes = date_ob.getMinutes();
let hours = date_ob.getHours();

async function compound(amountOswap){
if(currently_compounding) return
let ts = Date.now();
let date_ob = new Date(ts);
let seconds = date_ob.getSeconds();
let minutes = date_ob.getMinutes();
let hours = date_ob.getHours();

console.log(`\nRun Compounding Cycle\nCurrent Time: ` + hours + ":" + minutes + ":" + seconds)
try{

Expand Down

0 comments on commit a6364c1

Please sign in to comment.