Skip to content

Commit

Permalink
Merge pull request #139 from xfai-labs/add-xfai
Browse files Browse the repository at this point in the history
[xfai] export getUserTVLByBlock
  • Loading branch information
nitish-91 authored May 23, 2024
2 parents 4732fed + c8ad18b commit 9faa1ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adapters/xfai/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type ChangedLiquidity = {
blockNumber: bigint;
};

async function getUserTVLByBlock(
export async function getUserTVLByBlock(
block: BlockData
): Promise<OutputDataSchemaRow[]> {
const client = await getDBConnection();
Expand Down Expand Up @@ -148,7 +148,7 @@ async function getUserTVLByBlock(
return [
// Token reserve
{
block_number: Number(block_number),
block_number: Number(block.blockNumber),
timestamp,
user_address: owner,
token_address: token,
Expand All @@ -158,7 +158,7 @@ async function getUserTVLByBlock(
},
// WETH Reserve
{
block_number: Number(block_number),
block_number: Number(block.blockNumber),
timestamp,
user_address: owner,
token_address: WETH,
Expand Down

0 comments on commit 9faa1ca

Please sign in to comment.