File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 2.2.0
4
+
5
+ ### Added
6
+
7
+ numQuoters
8
+
3
9
## 2.1.0
4
10
5
11
### Added
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export interface PriceData extends Base, Price {
65
65
priceType : number
66
66
exponent : number
67
67
numComponentPrices : number
68
+ numQuoters : number
68
69
lastSlot : bigint
69
70
validSlot : bigint
70
71
twap : Ema
@@ -199,8 +200,8 @@ export const parsePriceData = (data: Buffer): PriceData => {
199
200
const exponent = data . readInt32LE ( 20 )
200
201
// number of component prices
201
202
const numComponentPrices = data . readUInt32LE ( 24 )
202
- // unused
203
- // const unused = accountInfo. data.readUInt32LE(28)
203
+ // number of quoters that make up aggregate
204
+ const numQuoters = data . readUInt32LE ( 28 )
204
205
// slot of last valid (not unknown) aggregate price
205
206
const lastSlot = readBigUInt64LE ( data , 32 )
206
207
// valid on-chain slot of aggregate price
@@ -255,6 +256,7 @@ export const parsePriceData = (data: Buffer): PriceData => {
255
256
priceType,
256
257
exponent,
257
258
numComponentPrices,
259
+ numQuoters,
258
260
lastSlot,
259
261
validSlot,
260
262
twap,
You can’t perform that action at this time.
0 commit comments