Skip to content

Add integration test for creator detail endpoint returning current price from snapshot #504

Description

@Chucks1093

Summary

The creator detail response should include current_price sourced from the price snapshot table, not a live on-chain call. An integration test should confirm the value matches what is in the snapshot and updates correctly after the snapshot is refreshed.

Scope

  • Seed a creator with a known price snapshot
  • Call GET /creators/:id and assert current_price matches the snapshot value
  • Update the snapshot to a new price and call again
  • Assert the response reflects the updated snapshot value

Acceptance Criteria

  • current_price matches the seeded snapshot value
  • current_price updates after the snapshot is refreshed
  • Field is present in both creator detail and creator list responses

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions