Skip to content

Commit

Permalink
fix: fetch correct blocknum states
Browse files Browse the repository at this point in the history
  • Loading branch information
climberNeedEquipment committed Jun 19, 2024
1 parent 731cd59 commit fd4514c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/layerbank/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const getUserTVLByBlock = async (blocks: BlockData) => {
console.log(`Block: ${block}`);
console.log("States: ", states.length);

await updateBorrowBalances(states);
await updateBorrowBalances(states, BigInt(block));

states.forEach((state) => {
const marketInfo = marketInfos.find(
Expand Down

0 comments on commit fd4514c

Please sign in to comment.