Skip to content

Add integration test for fan portfolio endpoint excluding creators where the wallet holds zero keys #645

Description

@Chucks1093

Summary

The fan portfolio endpoint aggregates a wallet's holdings but should exclude any creator where the current holding quantity is zero (e.g. after a full sell). An integration test should seed a zero-quantity holding and confirm it is absent from the portfolio response.

Scope

  • Seed wallet A with 2 keys for creator X and 0 keys for creator Y (simulating a full sell that left a zero record)
  • Call the fan portfolio endpoint for wallet A
  • Assert creator X is present with quantity: 2
  • Assert creator Y is absent from the response

Acceptance Criteria

  • Creator with zero holding excluded from portfolio response
  • Creator with non-zero holding present with correct quantity
  • grand_total reflects only non-zero holdings
  • Response does not error when zero-quantity records exist in the database

ETA: 12 hours


Coordinate on Telegram

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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