Skip to content

Add Reentrancy Protection (Internal Checks) #332

@Yunusabdul38

Description

@Yunusabdul38

Description

While Soroban's architecture manages many reentrancy risks, implement internal checks and a "Checks-Effects-Interactions" pattern across all functions that handle token transfers (e.g., place_prediction, claim_winnings).

Tasks

  • Audit claim_winnings to ensure state is updated before token transfer.
  • Implement a mutex-like flag for extra protection if complex external calls are added later.
  • Document anti-reentrancy patterns for future developers.

Dependencies

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcontractcontract

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions