Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmonte committed Oct 1, 2024
1 parent d9d156c commit 8b3c60c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/Account.sol
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,10 @@ contract Account is IAccount, Auth, OpsReady {
/// @notice deposit/withdraw margin to/from a Synthetix PerpsV2 Market
/// @param _market: address of market
/// @param _amount: amount of margin to deposit/withdraw
function _perpsV2ModifyMarginNoExternalRevert(address _market, int256 _amount) internal returns (bool) {
function _perpsV2ModifyMarginNoExternalRevert(
address _market,
int256 _amount
) internal returns (bool) {
if (_amount > 0) {
_sufficientMargin(_amount);
}
Expand Down Expand Up @@ -671,7 +674,9 @@ contract Account is IAccount, Auth, OpsReady {

/// @dev this will revert if market does not
/// have sufficient available margin
bool success = _perpsV2ModifyMarginNoExternalRevert(_market, -int256(difference));
bool success = _perpsV2ModifyMarginNoExternalRevert(
_market, -int256(difference)
);
/// @dev breakout of fee impose if market reverts (max leverage scenario)
if (!success) return;
}
Expand Down Expand Up @@ -958,7 +963,7 @@ contract Account is IAccount, Auth, OpsReady {
execAddress: address(this),
execData: abi.encodeCall(
this.executeConditionalOrder, conditionalOrderId
),
),
moduleData: moduleData,
feeToken: ETH
});
Expand Down
4 changes: 2 additions & 2 deletions test/integration/orderFlowFee.behavior.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ contract OrderFlowFeeTest is Test, ConsolidatedEvents {
account.execute(commands, inputs);

// Assert position is closed
IPerpsV2MarketConsolidated.Position memory position =
IPerpsV2MarketConsolidated.Position memory position =
account.getPosition(sETHPERP);
assertEq(0, position.size);

Expand Down Expand Up @@ -507,7 +507,7 @@ contract OrderFlowFeeTest is Test, ConsolidatedEvents {
account.execute(commands, inputs);

// Assert position is closed
IPerpsV2MarketConsolidated.Position memory position =
IPerpsV2MarketConsolidated.Position memory position =
account.getPosition(sETHPERP);
assertEq(0, position.size);

Expand Down

0 comments on commit 8b3c60c

Please sign in to comment.