On every swap that the user makes over YNOT finance mints a dummy token to the user’s wallet, this token takes note of the purchase price and the pair which was used to buy that token. Users can click on their portfolio and the position tokens will create a portfolio for the user with an option to manage individual positions. If the user uses YNOT finance to buy the token while some other exchange sells it, or just moves the tokens from the wallet. The user interface can track the availability of the tokens and can hide such positions from the portfolio. This is a very simple but effective feature needed by anyone who uses an AMM frequently.
Quantum Entangled NFTs are a pair of NFT that are generated in a single transaction and will be burned in a single transaction, this makes both the parties bound with each other and follow the same rule throughout the process as one can not cheat the system using just their part of the truth.
A pair of ERC-721 tokens gets minted whenever someone adds liquidity to the pool, each token presenting an asset and the share of the asset in that pool, while also binding them in a way that just like they were created in a single transaction when someone comes and try to take their portion of liquidity back, they can do so as the second part of the liquidity gets automatically withdrawn to the owner of the other ERC-721 token.
This solution works well for most cases, while there could be possibilities where the user wants to open a long position and is not looking to close his position in near future, in that case, there must be a pool that holds the other part of the ERC-721 and that pool is used to match with any new short positions. This way, the user gets a continuous open position until he draws back his tokens.