Skip to content

Implement stream splitting into two sub-streams #74

Description

@Chuks-coderr

Overview

Add a split_stream instruction that cancels an active stream and creates two new streams dividing the remaining balance by a specified ratio.

Acceptance Criteria

  • Ratio expressed as basis points (0–10000)
  • Original stream cancelled atomically with sub-stream creation
  • Accumulated claimable at split time distributed proportionally
  • Both sub-streams inherit original end_time and cliff_end_time
  • No tokens lost or duplicated (invariant enforced in tests)

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature, refactor, or new integrationenhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions