Skip to content

Commit

Permalink
style: apply forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Sep 2, 2024
1 parent 897cc80 commit e6be57f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 24 deletions.
4 changes: 1 addition & 3 deletions src/SablierV2MerkleLT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ contract SablierV2MerkleLT is
//////////////////////////////////////////////////////////////////////////*/

/// @dev Calculates the tranches based on the claim amount and the unlock percentages for each tranche.
function _calculateTranches(
uint128 claimAmount
)
function _calculateTranches(uint128 claimAmount)
internal
view
returns (LockupTranched.TrancheWithDuration[] memory tranches)
Expand Down
4 changes: 1 addition & 3 deletions src/SablierV2MerkleLockupFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ contract SablierV2MerkleLockupFactory is ISablierV2MerkleLockupFactory {
//////////////////////////////////////////////////////////////////////////*/

/// @inheritdoc ISablierV2MerkleLockupFactory
function isPercentagesSum100(
MerkleLT.TrancheWithPercentage[] calldata tranches
)
function isPercentagesSum100(MerkleLT.TrancheWithPercentage[] calldata tranches)
external
pure
override
Expand Down
4 changes: 1 addition & 3 deletions src/interfaces/ISablierV2MerkleLockupFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ interface ISablierV2MerkleLockupFactory {
/// @dev Reverts if the sum of percentages overflows.
/// @param tranches The tranches with their respective unlock percentages.
/// @return result True if the sum of percentages equals 100%, otherwise false.
function isPercentagesSum100(
MerkleLT.TrancheWithPercentage[] calldata tranches
)
function isPercentagesSum100(MerkleLT.TrancheWithPercentage[] calldata tranches)
external
pure
returns (bool result);
Expand Down
4 changes: 1 addition & 3 deletions test/integration/merkle-lockup/ll/clawback/clawback.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ contract Clawback_Integration_Test is MerkleLockup_Integration_Test {
test_Clawback(users.admin);
}

function testFuzz_Clawback(
address to
)
function testFuzz_Clawback(address to)
external
whenCallerAdmin
afterFirstClaim
Expand Down
4 changes: 1 addition & 3 deletions test/integration/merkle-lockup/lt/clawback/clawback.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ contract Clawback_Integration_Test is MerkleLockup_Integration_Test {
test_Clawback(users.admin);
}

function testFuzz_Clawback(
address to
)
function testFuzz_Clawback(address to)
external
whenCallerAdmin
afterFirstClaim
Expand Down
12 changes: 3 additions & 9 deletions test/utils/Defaults.sol
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,7 @@ contract Defaults is Merkle {
}

/// @dev Returns a batch of {BatchLockup.CreateWithTimestampsLD} parameters.
function batchCreateWithTimestampsLD(
uint256 batchSize
)
function batchCreateWithTimestampsLD(uint256 batchSize)
public
view
returns (BatchLockup.CreateWithTimestampsLD[] memory batch)
Expand All @@ -446,9 +444,7 @@ contract Defaults is Merkle {
}

/// @dev Returns a batch of {BatchLockup.CreateWithTimestampsLL} parameters.
function batchCreateWithTimestampsLL(
uint256 batchSize
)
function batchCreateWithTimestampsLL(uint256 batchSize)
public
view
returns (BatchLockup.CreateWithTimestampsLL[] memory batch)
Expand All @@ -462,9 +458,7 @@ contract Defaults is Merkle {
}

/// @dev Returns a batch of {BatchLockup.CreateWithTimestampsLL} parameters.
function batchCreateWithTimestampsLT(
uint256 batchSize
)
function batchCreateWithTimestampsLT(uint256 batchSize)
public
view
returns (BatchLockup.CreateWithTimestampsLT[] memory batch)
Expand Down

0 comments on commit e6be57f

Please sign in to comment.