Skip to content

Commit

Permalink
docs: status temperature (#984)
Browse files Browse the repository at this point in the history
* docs: status temperature

* Update src/types/DataTypes.sol

Co-authored-by: smol-ninja <[email protected]>

---------

Co-authored-by: smol-ninja <[email protected]>
  • Loading branch information
2 people authored and andreivladbrg committed Sep 11, 2024
1 parent f1f8ae6 commit 5719288
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/DataTypes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,19 @@ library Lockup {
}

/// @notice Enum representing the different statuses of a stream.
/// @dev The status can have a "temperature":
/// 1. Warm: Pending, Streaming. The passage of time alone can change the status.
/// 2. Cold: Settled, Canceled, Depleted. The passage of time alone cannot change the status.
/// @custom:value0 PENDING Stream created but not started; assets are in a pending state.
/// @custom:value1 STREAMING Active stream where assets are currently being streamed.
/// @custom:value2 SETTLED All assets have been streamed; recipient is due to withdraw them.
/// @custom:value3 CANCELED Canceled stream; remaining assets await recipient's withdrawal.
/// @custom:value4 DEPLETED Depleted stream; all assets have been withdrawn and/or refunded.
enum Status {
// Warm
PENDING,
STREAMING,
// Cold
SETTLED,
CANCELED,
DEPLETED
Expand Down

0 comments on commit 5719288

Please sign in to comment.