Skip to content

Commit

Permalink
style: run forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Aug 14, 2024
1 parent 08f851f commit 5c12fec
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 9 deletions.
4 changes: 3 additions & 1 deletion precompiles/Precompiles.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ contract Precompiles {
/// 4. {SablierV2LockupTranched}
/// 5. {SablierV2BatchLockup}
/// 6. {SablierV2MerkleLockupFactory}
function deployProtocol(address initialAdmin)
function deployProtocol(
address initialAdmin
)
public
returns (
ISablierV2LockupDynamic lockupDynamic,
Expand Down
4 changes: 3 additions & 1 deletion src/SablierV2MerkleLT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ 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: 3 additions & 1 deletion src/SablierV2MerkleLockupFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ 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: 3 additions & 1 deletion src/interfaces/ISablierV2MerkleLockupFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ 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: 3 additions & 1 deletion test/integration/merkle-lockup/ll/clawback/clawback.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ 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: 3 additions & 1 deletion test/integration/merkle-lockup/lt/clawback/clawback.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ 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: 9 additions & 3 deletions test/utils/Defaults.sol
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ 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 @@ -444,7 +446,9 @@ 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 @@ -458,7 +462,9 @@ 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 5c12fec

Please sign in to comment.