Skip to content

Commit

Permalink
Change 4 hours to 2 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Sep 6, 2024
1 parent 90a0609 commit 4a9e978
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function notifyRewardAmount(pool) {
const duration = await unipoolTokenDistributor.duration();

// 4 hours of precision
if (periodFinish < currentTime + 60 * 60 * 4) {
if (periodFinish < currentTime + 60 * 60 * 24) {
const pos = Math.floor((currentTime - initTime) / duration);
console.log("pos:", pos);
if (pos < 0) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ async function notifyRewardAmount(pool) {
const periodFinish = await unipoolTokenDistributor.periodFinish();
const duration = await unipoolTokenDistributor.duration();

// 4 hours of precision
if (periodFinish < currentTime + 60 * 60 * 4) {
// 24 hours of precision
if (periodFinish < currentTime + 60 * 60 * 24) {
const pos = Math.floor((currentTime - initTime) / duration);
console.log("pos:", pos);
if (pos < 0) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ async function notifyRewardAmount(pool) {
const periodFinish = await unipoolTokenDistributor.periodFinish();
const duration = await unipoolTokenDistributor.duration();

// 4 hours of precision
if (periodFinish < currentTime + 60 * 60 * 4) {
// 24 hours of precision
if (periodFinish < currentTime + 60 * 60 * 24) {
const pos = Math.floor((currentTime - initTime) / duration);
console.log("pos:", pos);
if (pos < 0) return;
Expand Down

0 comments on commit 4a9e978

Please sign in to comment.