Skip to content

Commit

Permalink
fix: address lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Aug 27, 2024
1 parent 02f751c commit f3a5352
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,15 @@ export const parsePriceData = (data: Buffer, currentSlot?: number): PriceData =>
// configurable max latency in slots between send and receive
const maxLatency = data.readUInt8(106)
// Various flags (used for operations)
const flag_bits = data.readInt8(107)
const flagBits = data.readInt8(107)

/* tslint:disable:no-bitwise */
const flags = {
accumulatorV2: (flag_bits & (1<<0)) !== 0,
messageBufferCleared: (flag_bits & (1<<1)) !== 0,
accumulatorV2: (flagBits & (1<<0)) !== 0,
messageBufferCleared: (flagBits & (1<<1)) !== 0,
}
/* tslint:enable:no-bitwise */

// Globally immutable unique price feed index used for publishing.
const feedIndex = data.readInt32LE(108)
// product id / reference account
Expand Down

0 comments on commit f3a5352

Please sign in to comment.