holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)

Home Page:https://holaplex.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reward Center Offer Public Buy (Not Private Buy)

kespinola opened this issue · comments

Issue

When computing the trade state on reward center offers the indexer is computing private buy trade states but the program issues public buy (aka offers on the NFT). This is leading to the wrong trade state being saved on the record.

https://github.com/holaplex/indexer/blob/dev/crates/indexer/src/geyser/accounts/hpl_reward_center/offer.rs#L100

Fix

Save public_buy trade state.