We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba885ff commit c90a49eCopy full SHA for c90a49e
src/index.ts
@@ -59,6 +59,7 @@ export interface Product {
59
asset_type: string
60
quote_currency: string
61
tenor: string
62
+ price_account: string
63
[index: string]: string
64
}
65
@@ -195,6 +196,7 @@ export const parseProductData = (data: Buffer): ProductData => {
195
196
const priceAccountBytes = data.slice(16, 48)
197
const priceAccountKey = new PublicKey(priceAccountBytes)
198
const product = {} as Product
199
+ product.price_account = priceAccountKey.toBase58()
200
let idx = 48
201
while (idx < size) {
202
const keyLength = data[idx]
0 commit comments