Skip to content

Security Audit: Reentrancy checks #17

Open

Description

@meshackyaro

Description

This issue aims to address the implementation of Security Audit: Reentrancy checks.

The core objective is to: Verify all state-changing functions occur before external token transfers.

By completing this feature, we will ensure that the TrustFlow protocol maintains its high standards for security, usability, and decentralized logic. This issue requires careful attention to the Smart Contracts architecture and adherence to the existing project conventions.

When picking up this issue, please ensure you document any new dependencies or architectural decisions made during development.

Component

Smart Contracts

Difficulty

🔴 Hard

Tasks

  • Review Soroban architecture and soroban-cli usage
  • Implement Rust logic for: Security Audit: Reentrancy checks
  • Write comprehensive unit tests in Rust
  • Ensure proper event emission for indexing
  • Run cargo fmt and cargo clippy
  • Verify soroban contract build successfully compiles to WASM without bloating size

Acceptance Criteria

  • Feature accurately implements the objective: Verify all state-changing functions occur before external token transfers.
  • Any PR that introduces Rust errors is automatically blocked
  • CI pipeline runs in under 3 minutes per PR
  • Code is properly reviewed and approved by codeowners

Estimated Time

1-3 days

Activity

  1. added
    enhancement
    on Jun 22, 2026
  2. added
    GrantFox OSS
    Maybe Rewarded
    Official Campaign | FWC26
    on Jul 18, 2026
  3. added
    priority: high
    difficulty: hard
    on Jul 20, 2026
  4. ranjeet150 commented on Sep 15, 2026

    @ranjeet150

    Hi maintainers,

    I can tackle Security Audit: Reentrancy checks. Proposed implementation roadmap:

    • Analysis: Inspect current behavior and edge cases in trustflow-protocol/trustflow-contract
    • Core Implementation: Implement Security Audit: Reentrancy checks with explicit require_auth checks, secure state storage, and gas optimization.
    • Quality Assurance: Add Soroban test cases checking unauthorized invocations, edge values, and state updates.

    I am ready to start immediately—please feel free to assign this to me!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSMaybe RewardedOfficial Campaign | FWC26difficulty: hardenhancementpriority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions