Skip to content

Commit

Permalink
Merge pull request DefiLlama#1228 from DefiLlama/update-run-adapter-code
Browse files Browse the repository at this point in the history
fix start of day
  • Loading branch information
dtmkeng authored Feb 20, 2024
2 parents 49e23da + 08a0257 commit a613257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/utils/runAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default async function runAdapter(volumeAdapter: BaseAdapter, cleanCurren
}
const fromApi = new ChainApi({ chain, timestamp: fromTimestamp, block: fromBlock })
const api = new ChainApi({ chain, timestamp: withinTwoHours ? undefined : timestamp, block: toBlock })
const startOfDay = getUniqStartOfTodayTimestamp(new Date(timestamp * 1000))
const startOfDay = getUniqStartOfTodayTimestamp(new Date(toTimestamp * 1000))

return {
createBalances,
Expand Down

0 comments on commit a613257

Please sign in to comment.