Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fs_permissions = [
libs = ["lib"]
ignored_error_codes = ["transient-storage"]
ignored_warnings_from = ["test"]
via-ir = true
via_ir = true
optimizer = true
optimizer_runs = 999999
bytecode_hash = "none"
Expand Down
10 changes: 4 additions & 6 deletions src/adapters/ParaswapAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,10 @@ contract ParaswapAdapter is CoreAdapter, IParaswapAdapter {
/// @notice Sets exact amount in `callData` to `exactAmount`.
/// @notice Proportionally scale limit amount in `callData`.
/// @notice If `offsets.quotedAmount` is not zero, proportionally scale quoted amount in `callData`.
function updateAmounts(
bytes memory callData,
Offsets calldata offsets,
uint256 exactAmount,
Math.Rounding rounding
) internal pure {
function updateAmounts(bytes memory callData, Offsets calldata offsets, uint256 exactAmount, Math.Rounding rounding)
internal
pure
{
uint256 oldExactAmount = callData.get(offsets.exactAmount);
callData.set(offsets.exactAmount, exactAmount);

Expand Down
8 changes: 3 additions & 5 deletions test/ParaswapMorphoBundlesLocalTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,9 @@ contract ParaswapMorphoBundlesLocalTest is LocalTest {
}

// Method: withdraw all, sell all, supply all
function _createFullSupplySwapBundle(
address user,
MarketParams memory sourceParams,
MarketParams memory destParams
) internal {
function _createFullSupplySwapBundle(address user, MarketParams memory sourceParams, MarketParams memory destParams)
internal
{
_createFullWithdrawAndSwapBundle(user, sourceParams, destParams.loanToken, address(generalAdapter1));
bundle.push(_morphoSupply(destParams, type(uint256).max, 0, type(uint256).max, user, hex""));
}
Expand Down