Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Coral99 on August 19, 2021, 01:46:53 PM



Title: Where can I understand the technical aspect of AMMs?
Post by: Coral99 on August 19, 2021, 01:46:53 PM
Hi

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?


Title: Re: Where can I understand the technical aspect of AMMs?
Post by: vv181 on August 19, 2021, 09:53:41 PM
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.
You can't. you need a wallet to be able to make the transaction.

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?
Pancakeswap or Uniswap does have a feature to mitigate that, it is called transaction deadline, each dex has its own default number, like Pancakeswap 20min and Uniswap 30min. If the time passed the deadline, the transaction/swap will be canceled.
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.
The guarantee is the minimum slippage tolerance that you pick.

So for aspects such as above where can I find out about the technical aspects of AMMs?
The docs page of the AMM, usually explains all of that above.
https://docs.uniswap.org/
https://docs.pancakeswap.finance/


Title: Re: Where can I understand the technical aspect of AMMs?
Post by: RussianEnglishTranslation on August 20, 2021, 04:29:09 AM
Hi

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?
Ref Finance doesn't require metamask because it's on NEAR protocol, which means you only need to log into your webwallet on a website and you can access all DApps. No more metamask required. Using DeFi on NEAR is just like using a normal website, it's easy.


Title: Re: Where can I understand the technical aspect of AMMs?
Post by: RussianEnglishTranslation on August 20, 2021, 04:30:10 AM
Hi

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?
Ref Finance doesn't require metamask because it's on NEAR protocol, which means you only need to log into your webwallet on a website and you can access all DApps. No more metamask required. Using DeFi on NEAR is just like using a normal website, it's easy.
I forgot to mention, there are no high gas fees- they are a fraction of a penny and it auto calculates the fee and there is no time out, the trade is instant.