Skip to content

Add maximum duration constraints #16

Open

Description

@meshackyaro

Description

This issue aims to address the implementation of Add maximum duration constraints.

The core objective is to: Prevent setting milestone deadlines further than 5 years in the future.

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

🟡 Medium

Tasks

  • Review Soroban architecture and soroban-cli usage
  • Implement Rust logic for: Add maximum duration constraints
  • 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: Prevent setting milestone deadlines further than 5 years in the future.
  • 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

4-8 hours

Activity

  1. added
    bug
    on Mar 14, 2026
  2. added
    GrantFox OSS
    Maybe Rewarded
    Official Campaign | FWC26
    on Jul 18, 2026
  3. added
    priority: low
    difficulty: medium
    on Jul 20, 2026
  4. added a commit that references this issue on Jul 20, 2026
    60bed56
  5. ranjeet150 commented on Sep 15, 2026

    @ranjeet150

    Hi maintainers,

    I would love to take this on. My planned approach:

    • Implement Add maximum duration constraints with thorough authorization verification and clean data structures.
    • Ensure contract compiles cleanly and passes all cargo tests without warnings.

    Looking forward to contributing—please assign whenever convenient!

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 | FWC26bugdifficulty: mediumpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions