Skip to content

Commit

Permalink
Update values variable name in _takeFromOrderBookSide to segmentsAtPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSamWitch committed Feb 3, 2024
1 parent 3182e5d commit c4047c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/SamWitchOrderBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable
uint[] memory _orderIdsPool,
uint[] memory _quantitiesPool,
OrderSide _side, // which side are you taking from
mapping(uint tokenId => mapping(uint price => bytes32[] segments)) storage values,
mapping(uint tokenId => mapping(uint price => bytes32[] segments)) storage segmentsAtPrice,
mapping(uint tokenId => BokkyPooBahsRedBlackTreeLibrary.Tree) storage tree
) private returns (uint24 quantityRemaining_, uint cost_) {
quantityRemaining_ = _quantity;
Expand All @@ -502,7 +502,7 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable

// Loop through all at this order
uint numSegmentsFullyConsumed = 0;
bytes32[] storage segments = values[_tokenId][bestPrice];
bytes32[] storage segments = segmentsAtPrice[_tokenId][bestPrice];
BokkyPooBahsRedBlackTreeLibrary.Node storage node = tree[_tokenId].getNode(bestPrice);

bool eatIntoLastOrder;
Expand Down

0 comments on commit c4047c7

Please sign in to comment.