Skip to content

Commit

Permalink
Make Code Pretty Again
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean329 committed Jan 31, 2025
1 parent c269318 commit 25deb89
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 397 deletions.
16 changes: 9 additions & 7 deletions contracts/src/interfaces/IHyperdriveMatchingEngineV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface IHyperdriveMatchingEngineV2 {
/// @notice Thrown when the long and short orders don't refer to the same
/// Hyperdrive instance.
error MismatchedHyperdrive();

/// @notice Thrown when the amount overflows.
error AmountOverflow();

Expand Down Expand Up @@ -105,14 +105,14 @@ interface IHyperdriveMatchingEngineV2 {
address feeRecipient;
/// @dev The Hyperdrive address where the trade will be executed.
IHyperdrive hyperdrive;
/// @dev The amount to be used in the trade. In the case of `OpenLong` or
/// `OpenShort`, this is the amount of funds to deposit; and in the
/// case of `CloseLong` or `CloseShort`, this is the min amount of
/// @dev The amount to be used in the trade. In the case of `OpenLong` or
/// `OpenShort`, this is the amount of funds to deposit; and in the
/// case of `CloseLong` or `CloseShort`, this is the min amount of
/// funds to receive.
uint256 fundAmount;
/// @dev The minimum output amount expected from the trade. In the case of
/// `OpenLong` or `OpenShort`, this is the min amount of bonds to
/// receive; and in the case of `CloseLong` or `CloseShort`, this is
/// `OpenLong` or `OpenShort`, this is the min amount of bonds to
/// receive; and in the case of `CloseLong` or `CloseShort`, this is
/// the amount of bonds to close.
uint256 bondAmount;
/// @dev The minimum vault share price. This protects traders against
Expand Down Expand Up @@ -181,7 +181,9 @@ interface IHyperdriveMatchingEngineV2 {
/// @param orderHash The hash of the order.
/// @return bondAmount The bond amount used for the order.
/// @return fundAmount The fund amount used for the order.
function orderAmountsUsed(bytes32 orderHash) external view returns (uint128 bondAmount, uint128 fundAmount);
function orderAmountsUsed(
bytes32 orderHash
) external view returns (uint128 bondAmount, uint128 fundAmount);

/// @notice Get the EIP712 typehash for the
/// `IHyperdriveMatchingEngine.OrderIntent` struct.
Expand Down
Loading

0 comments on commit 25deb89

Please sign in to comment.