Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface Product {
asset_type: string
quote_currency: string
tenor: string
price_account: string
[index: string]: string
}

Expand Down Expand Up @@ -195,6 +196,7 @@ export const parseProductData = (data: Buffer): ProductData => {
const priceAccountBytes = data.slice(16, 48)
const priceAccountKey = new PublicKey(priceAccountBytes)
const product = {} as Product
product.price_account = priceAccountKey.toBase58()
let idx = 48
while (idx < size) {
const keyLength = data[idx]
Expand Down