Skip to content

src/builder.ts: validate that stream duration does not exceed protocol maximum of 5 years #1120

Closed

Description

@Jaydbrown

Context

Creating streams with unintended durations spanning decades locks sender collateral indefinitely if the cancellation capability is disabled.

Why it matters

Enforcing a sensible upper bound prevents accidental multi-decade locking of tokens.

Suggested approach

Add validation in StreamBuilder.build() checking (stopTime - startTime) <= MAX_STREAM_DURATION_SECONDS (5 years) and throw ValidationError if exceeded.

Activity

  1. added
    enhancement
    Stellar Wave
    on Nov 20, 2026
  2. ashokwebs commented on Nov 21, 2026

    @ashokwebs

    @ashokwebs has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

    hey, I'd like to work on this, the 5-year cap fits nicely in the builder validation. please assign I can do it.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @ashokwebs to this issue.

  3. iamcracked-dev commented on Nov 21, 2026

    @iamcracked-dev
    Contributor

    @iamcracked-dev has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

    Hi, I’d like to take up this issue. I’ve reviewed the requirements and I’m interested in contributing to the fix. Kindly assign it to me. Thank you.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @iamcracked-dev to this issue.

  4. drips-wave commented on Nov 21, 2026

    @drips-wave

    Congratulations, @iamcracked-dev! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

    🧑‍💻 @iamcracked-dev: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  5. grantfox-oss commented on Nov 21, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @iamcracked-dev's PR #1200 was approved and merged by @Jaydbrown.

    🏆 @iamcracked-dev: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (525 total points). Track your full progress on GrantFox.

    👏 Great work, @iamcracked-dev! Keep contributing to conduit-protocol.

  6. drips-wave commented on Nov 21, 2026

    @drips-wave

    This issue has been completed by @iamcracked-dev as part of the Stellar Wave Program's 11th Wave 🥳

    😎 @iamcracked-dev: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

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

Metadata

Metadata

Labels

Stellar Waveenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions