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)
Overview
Add a
split_streaminstruction that cancels an active stream and creates two new streams dividing the remaining balance by a specified ratio.Acceptance Criteria
end_timeandcliff_end_time