Skip to content

Commit

Permalink
Alway query from history 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
batphonghan committed Aug 23, 2024
1 parent 630ad9b commit 317a5cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions adapters/kelp_gain_linea/src/lib/pendle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ const PendleURL =
const API_KEY = process.env.SENTIO_API_KEY || "";

export async function fetchAllPendleShare(timeStamp: number) {
const cur = new Date();
if (cur.getTime() / 1000 - timeStamp < 3600) {
timeStamp = cur.getTime() / 1000 - 3600;
}

const dataSize = 20000;
let page = 0;

Expand Down

0 comments on commit 317a5cd

Please sign in to comment.