Skip to content

Add unit tests for distribute_dividend emitting correct DividendDistributed event fields #499

Description

@Chucks1093

Summary

The DividendDistributed event must contain accurate values for all fields at the time of distribution. A unit test should assert each field individually to catch any mismatch between the stored data and the emitted event.

Scope

  • Distribute a known amount to a creator with a known supply
  • Capture the emitted DividendDistributed event
  • Assert creator_id, total_amount, snapshot_supply, and ledger all contain correct values
  • Assert total_amount reflects the gross amount before protocol fee deduction

Acceptance Criteria

  • creator_id matches the creator used
  • total_amount matches the gross distributed amount
  • snapshot_supply matches total supply at distribution time
  • ledger is a positive non-zero value

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions