Skip to content

Commit c8e6569

Browse files
committed
Forge unfmt
1 parent 995e88f commit c8e6569

File tree

8 files changed

+23
-22
lines changed

8 files changed

+23
-22
lines changed

src/builder/PaycallWrapper.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ library PaycallWrapper {
2929
scriptAddress: CodeJarHelper.getCodeAddress(paycallSource),
3030
scriptCalldata: abi.encodeWithSelector(
3131
Paycall.run.selector, operation.scriptAddress, operation.scriptCalldata, maxPaymentCost
32-
),
32+
),
3333
scriptSources: scriptSources,
3434
expiry: operation.expiry
3535
});

src/builder/PriceFeeds.sol

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,9 @@ library PriceFeeds {
248248
reverse[1] = false;
249249
return (path, reverse);
250250
} else if (
251-
// e.g. IN/ABC and ABC/OUT -> We want IN/ABC and ABC/OUT, which equates to reverse=[false, false]
252-
Strings.stringEqIgnoreCase(inputAssetPriceFeeds[i].quoteSymbol, outputAssetPriceFeeds[j].baseSymbol)
251+
Strings
252+
// e.g. IN/ABC and ABC/OUT -> We want IN/ABC and ABC/OUT, which equates to reverse=[false, false]
253+
.stringEqIgnoreCase(inputAssetPriceFeeds[i].quoteSymbol, outputAssetPriceFeeds[j].baseSymbol)
253254
) {
254255
address[] memory path = new address[](2);
255256
bool[] memory reverse = new bool[](2);
@@ -259,8 +260,9 @@ library PriceFeeds {
259260
reverse[1] = false;
260261
return (path, reverse);
261262
} else if (
262-
// e.g. ABC/IN and OUT/ABC -> We want IN/ABC and ABC/OUT, which equates to reverse=[true, true]
263-
Strings.stringEqIgnoreCase(inputAssetPriceFeeds[i].baseSymbol, outputAssetPriceFeeds[j].quoteSymbol)
263+
Strings
264+
// e.g. ABC/IN and OUT/ABC -> We want IN/ABC and ABC/OUT, which equates to reverse=[true, true]
265+
.stringEqIgnoreCase(inputAssetPriceFeeds[i].baseSymbol, outputAssetPriceFeeds[j].quoteSymbol)
264266
) {
265267
address[] memory path = new address[](2);
266268
bool[] memory reverse = new bool[](2);
@@ -270,10 +272,9 @@ library PriceFeeds {
270272
reverse[1] = true;
271273
return (path, reverse);
272274
} else if (
273-
// e.g. IN/ABC and OUT/ABC -> We want IN/ABC and ABC/OUT, which equates to reverse=[false, true]
274-
Strings.stringEqIgnoreCase(
275-
inputAssetPriceFeeds[i].quoteSymbol, outputAssetPriceFeeds[j].quoteSymbol
276-
)
275+
Strings
276+
// e.g. IN/ABC and OUT/ABC -> We want IN/ABC and ABC/OUT, which equates to reverse=[false, true]
277+
.stringEqIgnoreCase(inputAssetPriceFeeds[i].quoteSymbol, outputAssetPriceFeeds[j].quoteSymbol)
277278
) {
278279
address[] memory path = new address[](2);
279280
bool[] memory reverse = new bool[](2);

src/builder/QuotecallWrapper.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ library QuotecallWrapper {
3030
scriptAddress: CodeJarHelper.getCodeAddress(quotecallSource),
3131
scriptCalldata: abi.encodeWithSelector(
3232
Quotecall.run.selector, operation.scriptAddress, operation.scriptCalldata, quotedAmount
33-
),
33+
),
3434
scriptSources: scriptSources,
3535
expiry: operation.expiry
3636
});

src/builder/actions/Actions.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ library Actions {
666666
scriptAddress: CodeJarHelper.getCodeAddress(scriptSources[0]),
667667
scriptCalldata: CCTP.encodeBridgeUSDC(
668668
bridge.srcChainId, bridge.destinationChainId, bridge.amount, bridge.recipient, srcUSDCPositions.asset
669-
),
669+
),
670670
scriptSources: scriptSources,
671671
expiry: bridge.blockTimestamp + BRIDGE_EXPIRY_BUFFER
672672
});
@@ -1187,7 +1187,7 @@ library Actions {
11871187
morpho: MorphoInfo.getMorphoAddress(borrowInput.chainId),
11881188
morphoMarketId: MorphoInfo.marketId(
11891189
MorphoInfo.getMarketParams(borrowInput.chainId, borrowInput.collateralAssetSymbol, borrowInput.assetSymbol)
1190-
)
1190+
)
11911191
});
11921192
Action memory action = Actions.Action({
11931193
chainId: borrowInput.chainId,
@@ -1257,7 +1257,7 @@ library Actions {
12571257
morpho: MorphoInfo.getMorphoAddress(repayInput.chainId),
12581258
morphoMarketId: MorphoInfo.marketId(
12591259
MorphoInfo.getMarketParams(repayInput.chainId, repayInput.collateralAssetSymbol, repayInput.assetSymbol)
1260-
)
1260+
)
12611261
});
12621262

12631263
Action memory action = Actions.Action({
@@ -1492,7 +1492,7 @@ library Actions {
14921492
scriptAddress: CodeJarHelper.getCodeAddress(type(WrapperActions).creationCode),
14931493
scriptCalldata: TokenWrapper.encodeActionToWrapOrUnwrap(
14941494
wrapOrUnwrap.chainId, wrapOrUnwrap.assetSymbol, wrapOrUnwrap.amount
1495-
),
1495+
),
14961496
scriptSources: scriptSources,
14971497
expiry: wrapOrUnwrap.blockTimestamp + STANDARD_EXPIRY_BUFFER
14981498
});

src/builder/actions/SwapActionsBuilder.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ contract SwapActionsBuilder is QuarkBuilderBase {
7070
sellToken: swapIntent.sellToken,
7171
sellAssetSymbol: Accounts.findAssetPositions(
7272
swapIntent.sellToken, swapIntent.chainId, chainAccountsList
73-
).symbol,
73+
).symbol,
7474
sellAmount: swapIntent.sellAmount,
7575
buyToken: swapIntent.buyToken,
7676
buyAssetSymbol: Accounts.findAssetPositions(swapIntent.buyToken, swapIntent.chainId, chainAccountsList)

test/Multicall.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ contract MulticallTest is Test {
537537
path: abi.encodePacked(USDC, uint24(500), WETH) // Path: USDC - 0.05% -> WETH
538538
})
539539
)
540-
),
540+
),
541541
new bytes[](0)
542542
)
543543
),

test/UniswapFlashLoan.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ contract UniswapFlashLoanTest is Test {
277277
callContract: ethcallAddress,
278278
callData: abi.encodeWithSelector(
279279
Ethcall.run.selector, USDC, abi.encodeCall(IERC20.transfer, (address(1), 1000e6)), 0
280-
)
280+
)
281281
});
282282

283283
QuarkWallet.QuarkOperation memory op = new QuarkOperationHelper().newBasicOpWithCalldata(
@@ -312,7 +312,7 @@ contract UniswapFlashLoanTest is Test {
312312
callContract: ethcallAddress,
313313
callData: abi.encodeWithSelector(
314314
Ethcall.run.selector, USDC, abi.encodeCall(IERC20.approve, (comet, 1000e6)), 0
315-
)
315+
)
316316
})
317317
),
318318
ScriptType.ScriptAddress

test/builder/lib/QuarkBuilderTest.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,17 +450,17 @@ contract QuarkBuilderTest {
450450
chainPortfolios[i].account,
451451
chainPortfolios[i].assetSymbols,
452452
chainPortfolios[i].assetBalances
453-
),
453+
),
454454
// cometPositions: cometPositionsFor
455455
cometPositions: cometPositionsForCometPorfolios(
456456
chainPortfolios[i].chainId, chainPortfolios[i].account, chainPortfolios[i].cometPortfolios
457-
),
457+
),
458458
morphoPositions: morphoPositionsForMorphoPortfolios(
459459
chainPortfolios[i].chainId, chainPortfolios[i].account, chainPortfolios[i].morphoPortfolios
460-
),
460+
),
461461
morphoVaultPositions: morphoVaultPositionsForMorphoVaultPortfolios(
462462
chainPortfolios[i].chainId, chainPortfolios[i].account, chainPortfolios[i].morphoVaultPortfolios
463-
)
463+
)
464464
});
465465
}
466466

0 commit comments

Comments
 (0)