Skip to content

Commit

Permalink
fix: Prettier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karelianpie committed Apr 3, 2022
1 parent aed88d8 commit 2e0929c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces/earnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class EarningsInterface<C extends ChainId> extends ServiceInterface<C> {
fromDaysAgo: number,
latestBlockNumber?: number
): Promise<AssetHistoricEarnings> {
let blockNumber = latestBlockNumber ?? await this.ctx.provider.read.getBlockNumber();
let blockNumber = latestBlockNumber ?? (await this.ctx.provider.read.getBlockNumber());

blockNumber -= this.blockOffset(); // subgraph might be slightly behind latest block

Expand Down

0 comments on commit 2e0929c

Please sign in to comment.