Skip to content

Commit 93680c3

Browse files
authored
Merge pull request #261 from morpho-org/chore/via-ir-flag
refactor: via ir flag syntax
2 parents 3b22daf + 394d287 commit 93680c3

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fs_permissions = [
77
libs = ["lib"]
88
ignored_error_codes = ["transient-storage"]
99
ignored_warnings_from = ["test"]
10-
via-ir = true
10+
via_ir = true
1111
optimizer = true
1212
optimizer_runs = 999999
1313
bytecode_hash = "none"

src/adapters/ParaswapAdapter.sol

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,10 @@ contract ParaswapAdapter is CoreAdapter, IParaswapAdapter {
202202
/// @notice Sets exact amount in `callData` to `exactAmount`.
203203
/// @notice Proportionally scale limit amount in `callData`.
204204
/// @notice If `offsets.quotedAmount` is not zero, proportionally scale quoted amount in `callData`.
205-
function updateAmounts(
206-
bytes memory callData,
207-
Offsets calldata offsets,
208-
uint256 exactAmount,
209-
Math.Rounding rounding
210-
) internal pure {
205+
function updateAmounts(bytes memory callData, Offsets calldata offsets, uint256 exactAmount, Math.Rounding rounding)
206+
internal
207+
pure
208+
{
211209
uint256 oldExactAmount = callData.get(offsets.exactAmount);
212210
callData.set(offsets.exactAmount, exactAmount);
213211

test/ParaswapMorphoBundlesLocalTest.sol

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,9 @@ contract ParaswapMorphoBundlesLocalTest is LocalTest {
270270
}
271271

272272
// Method: withdraw all, sell all, supply all
273-
function _createFullSupplySwapBundle(
274-
address user,
275-
MarketParams memory sourceParams,
276-
MarketParams memory destParams
277-
) internal {
273+
function _createFullSupplySwapBundle(address user, MarketParams memory sourceParams, MarketParams memory destParams)
274+
internal
275+
{
278276
_createFullWithdrawAndSwapBundle(user, sourceParams, destParams.loanToken, address(generalAdapter1));
279277
bundle.push(_morphoSupply(destParams, type(uint256).max, 0, type(uint256).max, user, hex""));
280278
}

0 commit comments

Comments
 (0)