Skip to content

Commit

Permalink
Merge pull request #28 from rainprotocol/2023-09-15-named-mapping
Browse files Browse the repository at this point in the history
name mappings
  • Loading branch information
thedavidmeister authored Sep 15, 2023
2 parents dd09fc3 + 5d47dc3 commit 16ab37b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/concrete/OrderBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,15 @@ contract OrderBook is IOrderBookV3, ReentrancyGuard, Multicall, OrderBookV3Flash
/// order hash => order is live
// Solhint and slither disagree on this. Slither wins.
//solhint-disable-next-line private-vars-leading-underscore
mapping(bytes32 => uint256) internal sOrders;
mapping(bytes32 orderHash => uint256 liveness) internal sOrders;

/// @dev Vault balances are stored in a mapping of owner => token => vault ID
/// This gives 1:1 parity with the `IOrderBookV1` interface but keeping the
/// `sFoo` naming convention for storage variables.
// Solhint and slither disagree on this. Slither wins.
//solhint-disable-next-line private-vars-leading-underscore
mapping(address => mapping(address => mapping(uint256 => uint256))) internal sVaultBalances;
mapping(address owner => mapping(address token => mapping(uint256 vaultId => uint256 balance))) internal
sVaultBalances;

/// Initializes the orderbook upon construction for compatibility with
/// Open Zeppelin upgradeable contracts. Orderbook itself does NOT support
Expand Down

0 comments on commit 16ab37b

Please sign in to comment.