Skip to content

Commit

Permalink
Merge pull request #188 from davos-money/main
Browse files Browse the repository at this point in the history
Davos: lending: fix lower case
  • Loading branch information
0xroll authored May 30, 2024
2 parents fcd0164 + 01c917c commit d99f959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adapters/davos/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ export const getUserTVLByBlock = async (blocks: BlockData) => {
csvRows.push({
block_number: blockNumber,
timestamp: blockTimestamp,
user_address: address,
token_address: collateral,
user_address: address.toLowerCase(),
token_address: collateral.toLowerCase(),
token_balance: BigInt(value),
token_symbol: '',
usd_price: 0
Expand Down Expand Up @@ -190,7 +190,7 @@ readBlocksFromCSV('hourly_blocks.csv').then(async (blocks: BlockData[]) => {
const result = await getUserTVLByBlock(block);
allCsvRows.push(...result);
} catch (error) {
console.error(`An error occurred for block ${block}:`, error);
console.error(`An error occurred for block ${block}:`, error);
}
}
await new Promise((resolve, reject) => {
Expand Down

0 comments on commit d99f959

Please sign in to comment.