Skip to content

Commit d58433c

Browse files
committed
fix: forge fmt
1 parent bab4940 commit d58433c

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

packages/libs/contracts-sdk/test/fees/AaveFeeForkTest.t.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ contract AaveFeeForkTest is Test {
150150
uint256 feeContractBalance = underlyingERC20.balanceOf(address(aavePerfFeeFacet));
151151

152152
uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
153-
uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
153+
uint256 expectedUserProfit =
154+
expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
154155
uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR;
155156
console.log("expectedTotalProfit", expectedTotalProfit);
156157
console.log("expectedUserProfit", expectedUserProfit);
@@ -364,7 +365,8 @@ contract AaveFeeForkTest is Test {
364365
uint256 feeContractBalance = underlyingERC20.balanceOf(address(aavePerfFeeFacet));
365366

366367
uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
367-
uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
368+
uint256 expectedUserProfit =
369+
expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
368370
uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR;
369371
console.log("expectedTotalProfit", expectedTotalProfit);
370372
console.log("expectedUserProfit", expectedUserProfit);

packages/libs/contracts-sdk/test/fees/MorphoFee.t.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ contract MorphoFeeTest is Test {
114114
uint256 feeContractBalance = mockERC20.balanceOf(address(morphoPerfFeeFacet));
115115

116116
uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
117-
uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
117+
uint256 expectedUserProfit =
118+
expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
118119
uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR;
119120
console.log("expectedTotalProfit", expectedTotalProfit);
120121
console.log("expectedUserProfit", expectedUserProfit);
@@ -230,7 +231,8 @@ contract MorphoFeeTest is Test {
230231
uint256 feeContractBalance = mockERC20.balanceOf(address(morphoPerfFeeFacet));
231232

232233
uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
233-
uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
234+
uint256 expectedUserProfit =
235+
expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
234236
uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR;
235237
console.log("expectedTotalProfit", expectedTotalProfit);
236238
console.log("expectedUserProfit", expectedUserProfit);

packages/libs/contracts-sdk/test/fees/MorphoFeeForkTest.t.sol

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {Morpho} from "../ABIs/Morpho.sol";
2020

2121
contract MorphoFeeForkTest is Test {
2222
uint256 constant BASIS_POINT_DIVISOR = 10000;
23-
23+
2424
address owner;
2525
address APP_USER_ALICE = makeAddr("Alice");
2626
// real morpho vault on base from https://app.morpho.org/base/vault/0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A/spark-usdc-vault
@@ -154,7 +154,8 @@ contract MorphoFeeForkTest is Test {
154154
uint256 feeContractBalance = underlyingERC20.balanceOf(address(morphoPerfFeeFacet));
155155

156156
uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
157-
uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
157+
uint256 expectedUserProfit =
158+
expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
158159
uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR;
159160
console.log("expectedTotalProfit", expectedTotalProfit);
160161
console.log("expectedUserProfit", expectedUserProfit);
@@ -358,7 +359,8 @@ contract MorphoFeeForkTest is Test {
358359
uint256 feeContractBalance = underlyingERC20.balanceOf(address(morphoPerfFeeFacet));
359360

360361
uint256 expectedTotalProfit = expectedTotalWithdrawal - depositAmount;
361-
uint256 expectedUserProfit = expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
362+
uint256 expectedUserProfit =
363+
expectedTotalProfit - (expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR);
362364
uint256 expectedFeeContractProfit = expectedTotalProfit * performanceFeePercentage / BASIS_POINT_DIVISOR;
363365
console.log("expectedTotalProfit", expectedTotalProfit);
364366
console.log("expectedUserProfit", expectedUserProfit);

0 commit comments

Comments
 (0)