Skip to content

cloneStream copies the original stream rate without adjusting for elapsed time causing over-payment #517

Description

@Chuks-coderr

Description

When cloneStream is used to duplicate an active stream, the cloned stream uses the original deposit amount rather than the remaining unstreamed balance. This means a clone created mid-stream starts with a deposit that has already been partially consumed by the original, allowing more funds to be withdrawn from the clone than were deposited for the remaining duration.

Acceptance Criteria

  • Feature is fully implemented
  • Tests pass
  • Lint/type checks pass
  • PR references this issue number

Notes

⚠️ Do not begin coding until you have been assigned by the maintainer.
Branch as feat/517-fix-clone-deposit-amount where N is this issue number.

Activity

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingcomplexity: highComplex feature, refactor, or new integration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions