Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: run forge fmt #384

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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