-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b4ba5e
commit fa2611c
Showing
11 changed files
with
159 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.24; | ||
|
||
/// @notice A data structure to define a geometric Line with two points. | ||
struct Line { | ||
/// @notice x-coordinate of the first point. | ||
uint256 x1; | ||
/// @notice y-coordinate of the first point. | ||
uint256 y1; | ||
/// @notice x-coordinate of the second point. | ||
uint256 x2; | ||
/// @notice y-coordinate of the second point. | ||
uint256 y2; | ||
} | ||
|
||
/// @notice A data structure to define a numeric Range. | ||
struct Range { | ||
/// @notice Lower bound of the range. | ||
uint256 lower; | ||
/// @notice Upper bound of the range. | ||
uint256 upper; | ||
} | ||
|
||
/// @notice A data structure to store various fees associated with BillBroker operations. | ||
struct BillBrokerFees { | ||
/// @notice The percentage fee charged for minting BillBroker LP tokens. | ||
uint256 mintFeePerc; | ||
/// @notice The percentage fee charged for burning BillBroker LP tokens. | ||
uint256 burnFeePerc; | ||
/// @notice Range of fee percentages for swapping from perp tokens to USD. | ||
Range perpToUSDSwapFeePercs; | ||
/// @notice Range of fee percentages for swapping from USD to perp tokens. | ||
Range usdToPerpSwapFeePercs; | ||
/// @notice The percentage of the swap fees that goes to the protocol. | ||
uint256 protocolSwapSharePerc; | ||
} | ||
|
||
/// @notice A data structure to represent the BillBroker's reserve state. | ||
struct ReserveState { | ||
/// @notice The reserve USD token balance. | ||
uint256 usdReserve; | ||
/// @notice The reserve perp token balance. | ||
uint256 perpReserve; | ||
/// @notice The price of USD tokens in dollars (or some common denomination). | ||
uint256 usdPrice; | ||
/// @notice The price of perp tokens in dollars (or some common denomination). | ||
uint256 perpPrice; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.