Skip to content

Add regression test for buyback KeysBoughtBack event containing correct new_supply value #480

Description

@Chucks1093

Summary

The KeysBoughtBack event must include the updated total supply after the buyback completes. A regression test should confirm the new_supply field equals the pre-buyback supply minus the buyback amount.

Scope

  • Record total supply before a buyback
  • Execute a buyback for a known amount
  • Capture the emitted KeysBoughtBack event
  • Assert new_supply equals pre-buyback supply minus the buyback amount

Acceptance Criteria

  • new_supply field equals pre-buyback supply minus buyback amount
  • Event field is present and not zero when supply remains after buyback
  • Full buyback of all supply results in new_supply of zero

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