```\nFile: PartyBFacetImpl.sol\n    function openPosition(\n        uint256 quoteId,\n        uint256 filledAmount,\n        uint256 openedPrice,\n        PairUpnlAndPriceSig memory upnlSig\n    ) internal returns (uint256 currentId) {\n..SNIP..\n\n        LibQuote.removeFromPendingQuotes(quote);\n\n..SNIP..\n            quoteLayout.quoteIdsOf[quote.partyA].push(currentId);\n..SNIP..\n            } else {\n                accountLayout.pendingLockedBalances[quote.partyA].sub(filledLockedValues);\n                accountLayout.partyBPendingLockedBalances[quote.partyB][quote.partyA].sub(\n                    filledLockedValues\n                );\n            }\n```\n