Skip to content

Commit

Permalink
chore: improve wording in explanatory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Apr 18, 2024
1 parent 0229a7c commit c2bc68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SablierV2OpenEnded.sol
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ contract SablierV2OpenEnded is ISablierV2OpenEnded, NoDelegateCall, SablierV2Ope

uint8 assetDecimals = _safeAssetDecimals(address(asset));

// Checks: the asset has decimals.
// Checks: the asset does not have decimals.
if (assetDecimals == 0) {
revert Errors.SablierV2OpenEnded_InvalidAssetDecimals(asset);
}
Expand All @@ -460,7 +460,7 @@ contract SablierV2OpenEnded is ISablierV2OpenEnded, NoDelegateCall, SablierV2Ope
});

// Effects: bump the next stream id.
// Using unchecked arithmetic because these calculations cannot realistically overflow, ever.
// Using unchecked arithmetic because this calculation cannot realistically overflow, ever.
unchecked {
nextStreamId = streamId + 1;
}
Expand Down

0 comments on commit c2bc68a

Please sign in to comment.