Summary
The client currently has no fast path to get the current key price for a creator. Every price lookup either requires a direct Soroban RPC call or a round-trip that is too slow for a list view with many creators. The server needs a lightweight price read model that the indexer keeps current so the client can get prices with a single database read.
Scope
- Add a
creator_price_snapshot table (or equivalent model) with fields: creator_id, current_price, price_24h_ago, last_trade_at, updated_at
- Update the indexer to write to this table whenever a buy or sell event is processed
- Expose
current_price and price_change_24h fields on the creator detail and creator list responses
- Add an index on
creator_id for fast lookups
Acceptance Criteria
Coordinate on Telegram
Summary
The client currently has no fast path to get the current key price for a creator. Every price lookup either requires a direct Soroban RPC call or a round-trip that is too slow for a list view with many creators. The server needs a lightweight price read model that the indexer keeps current so the client can get prices with a single database read.
Scope
creator_price_snapshottable (or equivalent model) with fields:creator_id,current_price,price_24h_ago,last_trade_at,updated_atcurrent_priceandprice_change_24hfields on the creator detail and creator list responsescreator_idfor fast lookupsAcceptance Criteria
current_priceandprice_change_24hCoordinate on Telegram