Skip to content

Commit

Permalink
style: run forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Jun 18, 2023
1 parent 6ae1ca6 commit d533afe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/SablierV2LockupDynamic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,13 @@ contract SablierV2LockupDynamic is
}

/// @dev See the documentation for the user-facing functions that call this internal function.
function withdrawableAmountOf(uint256 streamId) public view override(ISablierV2Lockup, SablierV2Lockup) notNull(streamId) returns (uint128 withdrawableAmount) {
function withdrawableAmountOf(uint256 streamId)
public
view
override(ISablierV2Lockup, SablierV2Lockup)
notNull(streamId)
returns (uint128 withdrawableAmount)
{
withdrawableAmount = _streamedAmountOf(streamId) - _streams[streamId].amounts.withdrawn;
}

Expand Down
8 changes: 7 additions & 1 deletion src/SablierV2LockupLinear.sol
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,13 @@ contract SablierV2LockupLinear is
}

/// @dev See the documentation for the user-facing functions that call this internal function.
function withdrawableAmountOf(uint256 streamId) public view override(ISablierV2Lockup, SablierV2Lockup) notNull(streamId) returns (uint128 withdrawableAmount) {
function withdrawableAmountOf(uint256 streamId)
public
view
override(ISablierV2Lockup, SablierV2Lockup)
notNull(streamId)
returns (uint128 withdrawableAmount)
{
withdrawableAmount = _streamedAmountOf(streamId) - _streams[streamId].amounts.withdrawn;
}

Expand Down
2 changes: 1 addition & 1 deletion src/abstracts/SablierV2Lockup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ abstract contract SablierV2Lockup is
_withdraw(streamId, to, amount);
}

function withdrawableAmountOf(uint256 streamId) public virtual view returns (uint128 withdrawableAmount);
function withdrawableAmountOf(uint256 streamId) public view virtual returns (uint128 withdrawableAmount);

/// @inheritdoc ISablierV2Lockup
function withdrawMax(uint256 streamId, address to) external override {
Expand Down

0 comments on commit d533afe

Please sign in to comment.