Skip to content

Commit

Permalink
fix: fix how we get block in adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Apr 11, 2024
1 parent 4a3d38f commit 7127e01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/adapter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ interface ApiParameter {
}

async function tvl(
timestamp: number,
block: number,
_timestamp: number,
_block: number,
_: unknown,
{ api }: ApiParameter,
): Promise<void> {
const block = await api.getBlock();
// Pool TVL (Current token balances)
const tokensAndOwners = await getPools(block, api);

Expand Down

0 comments on commit 7127e01

Please sign in to comment.