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,