Skip to content

Commit

Permalink
Fixes in response to PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
aquarat committed Nov 6, 2023
1 parent 61dde03 commit bfaadc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/state/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { BigNumber } from 'ethers';
import { produce, type Draft } from 'immer';

import type { Config } from '../config/schema';
import type { chainId, DApiName, DecodedDataFeed, DataFeedId, SignedData } from '../types';
import type { ChainId, DApiName, DecodedDataFeed, DataFeedId, SignedData } from '../types';

interface GasState {
gasPrices: { price: BigNumber; timestampMs: number }[];
Expand All @@ -16,8 +16,8 @@ export interface DataFeedValue {

export interface DapiState {
dataFeed: DecodedDataFeed;
dataFeedValues: Record<chainId, DataFeedValue>;
updateParameters: Record<chainId, UpdateParameters>;
dataFeedValues: Record<ChainId, DataFeedValue>;
updateParameters: Record<ChainId, UpdateParameters>;
}

export interface UpdateParameters {
Expand Down
4 changes: 1 addition & 3 deletions src/update-feeds/update-feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ export const getFeedsToUpdate = (batch: ReadDapiWithIndexResponse[]) =>
signedData,
};
})
.filter((dapi) => {
const { signedData, updateParameters, dataFeedValue } = dapi;

.filter(({ signedData, updateParameters, dataFeedValue }) => {
if (!signedData) {
return false;
}
Expand Down

0 comments on commit bfaadc7

Please sign in to comment.