diff --git a/precompiles/Precompiles.sol b/precompiles/Precompiles.sol index 738c5213..dbf25c44 100644 --- a/precompiles/Precompiles.sol +++ b/precompiles/Precompiles.sol @@ -67,7 +67,9 @@ contract Precompiles { /// 4. {SablierV2LockupTranched} /// 5. {SablierV2BatchLockup} /// 6. {SablierV2MerkleLockupFactory} - function deployProtocol(address initialAdmin) + function deployProtocol( + address initialAdmin + ) public returns ( ISablierV2LockupDynamic lockupDynamic, diff --git a/src/SablierV2MerkleLT.sol b/src/SablierV2MerkleLT.sol index 286614e4..3735c434 100644 --- a/src/SablierV2MerkleLT.sol +++ b/src/SablierV2MerkleLT.sol @@ -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) diff --git a/src/SablierV2MerkleLockupFactory.sol b/src/SablierV2MerkleLockupFactory.sol index 35c5f12a..e59b3209 100644 --- a/src/SablierV2MerkleLockupFactory.sol +++ b/src/SablierV2MerkleLockupFactory.sol @@ -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 diff --git a/src/interfaces/ISablierV2MerkleLockupFactory.sol b/src/interfaces/ISablierV2MerkleLockupFactory.sol index 8574492f..5a0b98ad 100644 --- a/src/interfaces/ISablierV2MerkleLockupFactory.sol +++ b/src/interfaces/ISablierV2MerkleLockupFactory.sol @@ -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); diff --git a/test/integration/merkle-lockup/ll/clawback/clawback.t.sol b/test/integration/merkle-lockup/ll/clawback/clawback.t.sol index 226b62a6..67990eff 100644 --- a/test/integration/merkle-lockup/ll/clawback/clawback.t.sol +++ b/test/integration/merkle-lockup/ll/clawback/clawback.t.sol @@ -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 diff --git a/test/integration/merkle-lockup/lt/clawback/clawback.t.sol b/test/integration/merkle-lockup/lt/clawback/clawback.t.sol index 41c8f0a5..84a3dd5e 100644 --- a/test/integration/merkle-lockup/lt/clawback/clawback.t.sol +++ b/test/integration/merkle-lockup/lt/clawback/clawback.t.sol @@ -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 diff --git a/test/utils/Defaults.sol b/test/utils/Defaults.sol index 6aa4bc58..235855db 100644 --- a/test/utils/Defaults.sol +++ b/test/utils/Defaults.sol @@ -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) @@ -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) @@ -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)