So looking at AMMs, like Pancake Swap.
Where can I find out about the technical aspects.
Some thought come to mind are PCS currently relies on a third party wallet such as metamask, so how can a transaction be made without a wallet, for example if all you have is your private key.
Another question is, what happens to a transaction if it gets stuck, typically I wait for a few minutes for a transaction to confirm. Are there any safety measures like if the tx doesnt confirm after hours or days the tx can be cancelled?
Also when swapping can you guarantee you get the swap at the price when you swap, so if it takes a while for the tx to confirm the price could change, and you could receive less tokens than you thought you were swapping for.
So for aspects such as above where can I find out about the technical aspects of AMMs?