Skip to content

Add regression test for dividend claim zeroing claimable balance after successful withdrawal #478

Description

@Chucks1093

Summary

After a holder successfully claims their dividend, their claimable balance must be set to exactly zero. Calling get_claimable_dividend after a successful claim should return zero, not the previously claimed amount. A regression test should lock in this behavior.

Scope

  • Distribute a dividend to a creator with one holder
  • Claim the dividend from the holder's wallet
  • Call get_claimable_dividend for the same wallet and creator
  • Assert the returned value is zero

Acceptance Criteria

  • Claimable balance is zero after successful claim
  • get_claimable_dividend returns zero, not the previously claimed amount
  • A second claim attempt reverts with expected error

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