From e6be57f707aa5470b65926f5b96ba7b3321d85d5 Mon Sep 17 00:00:00 2001 From: smol-ninja Date: Mon, 2 Sep 2024 15:20:17 +0100 Subject: [PATCH] style: apply forge fmt --- src/SablierV2MerkleLT.sol | 4 +--- src/SablierV2MerkleLockupFactory.sol | 4 +--- src/interfaces/ISablierV2MerkleLockupFactory.sol | 4 +--- .../merkle-lockup/ll/clawback/clawback.t.sol | 4 +--- .../merkle-lockup/lt/clawback/clawback.t.sol | 4 +--- test/utils/Defaults.sol | 12 +++--------- 6 files changed, 8 insertions(+), 24 deletions(-) diff --git a/src/SablierV2MerkleLT.sol b/src/SablierV2MerkleLT.sol index 3735c434..286614e4 100644 --- a/src/SablierV2MerkleLT.sol +++ b/src/SablierV2MerkleLT.sol @@ -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) diff --git a/src/SablierV2MerkleLockupFactory.sol b/src/SablierV2MerkleLockupFactory.sol index e59b3209..35c5f12a 100644 --- a/src/SablierV2MerkleLockupFactory.sol +++ b/src/SablierV2MerkleLockupFactory.sol @@ -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 diff --git a/src/interfaces/ISablierV2MerkleLockupFactory.sol b/src/interfaces/ISablierV2MerkleLockupFactory.sol index 5a0b98ad..8574492f 100644 --- a/src/interfaces/ISablierV2MerkleLockupFactory.sol +++ b/src/interfaces/ISablierV2MerkleLockupFactory.sol @@ -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); diff --git a/test/integration/merkle-lockup/ll/clawback/clawback.t.sol b/test/integration/merkle-lockup/ll/clawback/clawback.t.sol index 67990eff..226b62a6 100644 --- a/test/integration/merkle-lockup/ll/clawback/clawback.t.sol +++ b/test/integration/merkle-lockup/ll/clawback/clawback.t.sol @@ -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 diff --git a/test/integration/merkle-lockup/lt/clawback/clawback.t.sol b/test/integration/merkle-lockup/lt/clawback/clawback.t.sol index 84a3dd5e..41c8f0a5 100644 --- a/test/integration/merkle-lockup/lt/clawback/clawback.t.sol +++ b/test/integration/merkle-lockup/lt/clawback/clawback.t.sol @@ -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 diff --git a/test/utils/Defaults.sol b/test/utils/Defaults.sol index 235855db..6aa4bc58 100644 --- a/test/utils/Defaults.sol +++ b/test/utils/Defaults.sol @@ -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) @@ -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) @@ -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)