Skip to content

Commit

Permalink
Merge pull request #299 from batphonghan/fix_ageth_pendle_issue
Browse files Browse the repository at this point in the history
kelp: gain : fix query tvl for pendle users
  • Loading branch information
0xroll authored Sep 18, 2024
2 parents ccb8e33 + a525f4f commit f8929c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions adapters/kelp_gain_linea/src/lib/pendle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function fetchAllPendleShare(
blockNumber: number,
timeStamp: number
) {
if (blockNumber <= PENDLE_START_BLOCK) {
if (blockNumber <= PENDLE_START_BLOCK || timeStamp < EARLIEST_TIME) {
return [];
}
const dataSize = 20000;
Expand Down Expand Up @@ -42,7 +42,6 @@ export async function fetchAllPendleShare(
if (shares.length == 0) {
throw new Error(`Empty share pendle BLOCK: ${blockNumber}`);
}
throw new Error(`Empty share pendle BLOCK: ${blockNumber}`);
return shares;
}

Expand Down

0 comments on commit f8929c1

Please sign in to comment.