Skip to content

[Contract] Add Reentrancy Protection Guards Across All Payment Stream Functions #514

Description

@Idrhas

Task Description

Integrate reentrancy guard decorators and state locks to all state-mutating functions in Soroban stream contracts.

Requirements & Scope

  • Target Area: Soroban Rust Smart Contracts (contracts/ / src/contracts/)
  • Key Objectives:
    1. Implement complete, production-ready Rust code following Soroban SDK best practices.
    2. Include explicit authorization checks (require_auth()) and error handling enums.
    3. Write comprehensive unit tests in Rust covering success, failure, and edge cases.
    4. Ensure storage TTL management and efficient state footprint.

Acceptance Criteria

  • Code compiles cleanly with zero warnings (cargo build --target wasm32-unknown-unknown).
  • All unit tests pass (cargo test).
  • Proper error codes defined in Error enum.
  • Complete documentation comments added to public functions.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestsmart-contractSoroban Rust smart contract tasks

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions