Skip to content

Commit

Permalink
docs: polish explanatory comment
Browse files Browse the repository at this point in the history
docs: move Access Control table in TECHNICAL DOC
  • Loading branch information
andreivladbrg committed Oct 7, 2024
1 parent 6b941ae commit 244a342
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
13 changes: 0 additions & 13 deletions DIAGRAMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,6 @@ flowchart LR
linkStyle 2,3,4,10,11 stroke:#ff0000,stroke-width:2px
```

## Access Control

| Action | Sender | Recipient | Operator(s) | Unknown User |
| ------------------- | :--------------------: | :-------: | :---------: | :--------------------: |
| AdjustRatePerSecond | βœ… | ❌ | ❌ | ❌ |
| Deposit | βœ… | βœ… | βœ… | βœ… |
| Pause | βœ… | ❌ | ❌ | ❌ |
| Refund | βœ… | ❌ | ❌ | ❌ |
| Restart | βœ… | ❌ | ❌ | ❌ |
| Transfer NFT | ❌ | βœ… | βœ… | ❌ |
| Void | βœ… | βœ… | βœ… | ❌ |
| Withdraw | βœ… (only to Recipient) | βœ… | βœ… | βœ… (only to Recipient) |

### Internal State

The
Expand Down
13 changes: 13 additions & 0 deletions TECHNICAL-DOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ can only withdraw the available balance.
| Total Debt | td |
| Uncovered Debt | ud |

## Access Control

| Action | Sender | Recipient | Operator(s) | Unknown User |
| ------------------- | :--------------------: | :-------: | :---------: | :--------------------: |
| AdjustRatePerSecond | βœ… | ❌ | ❌ | ❌ |
| Deposit | βœ… | βœ… | βœ… | βœ… |
| Pause | βœ… | ❌ | ❌ | ❌ |
| Refund | βœ… | ❌ | ❌ | ❌ |
| Restart | βœ… | ❌ | ❌ | ❌ |
| Transfer NFT | ❌ | βœ… | βœ… | ❌ |
| Void | βœ… | βœ… | βœ… | ❌ |
| Withdraw | βœ… (only to Recipient) | βœ… | βœ… | βœ… (only to Recipient) |

## Invariants

1. for any stream, $st \le now$
Expand Down
2 changes: 1 addition & 1 deletion src/SablierFlow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ contract SablierFlow is

uint128 snapshotDebt = _streams[streamId].snapshotDebt;

// If the stream has debt, return zero.
// If the stream has uncovered debt, return zero.
if (snapshotDebt + _ongoingDebtOf(streamId) >= balance) {
return 0;
}
Expand Down

0 comments on commit 244a342

Please sign in to comment.