From c8ad18b0e0dc675c3f276d76c8f59f30ee71b257 Mon Sep 17 00:00:00 2001 From: Dian Fishekqi Date: Fri, 17 May 2024 11:38:22 +0200 Subject: [PATCH] export getUserTVLByBlock --- adapters/xfai/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adapters/xfai/src/index.ts b/adapters/xfai/src/index.ts index b8a6c892..5a960fdc 100644 --- a/adapters/xfai/src/index.ts +++ b/adapters/xfai/src/index.ts @@ -59,7 +59,7 @@ type ChangedLiquidity = { blockNumber: bigint; }; -async function getUserTVLByBlock( +export async function getUserTVLByBlock( block: BlockData ): Promise { const client = await getDBConnection(); @@ -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, @@ -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,