# PancakeSwap

In this tutorial, we'll cover merely the basic steps on how to buy LTO tokens on PancakeSwap. If you require a more in-depth introduction you can refer to [other resources](https://academy.binance.com/en/articles/a-guide-to-pancakeswap).&#x20;

## Prerequisites

For the sake of simplicity, we will assume you have a MetaMask wallet that you are using to connect to PancakeSwap and buy LTO tokens. Should you be using another wallet the preparation will have similar steps depending on the wallet used.

### MetaMask configuration

Two steps are required to configure MetaMask for PancakeSwap. First, you need to enable the BNB network on MetaMask. A simple tutorial can be found [here](https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain), follow it and add the **BNB Mainnet**.

Second, after you added the BNB Smart Chain, we can add the LTO token to the MetaMask token overview. Simply tap the *Add token* button to start the process:

![MetaMask token overview.](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB0RTB-jl8RVmWX9aeE%2F-MbQAezspNhLL3Ng7Str%2F-MbQC2nalClfHHf_I44I%2FScreen%20Shot%202021-06-05%20at%2010.02.19.png?alt=media\&token=52673de8-cdc9-49dc-9cd4-56602559de88)

To find LTO you will need to provide LTO's contract address. This ensures that the right token will be added to your token overview.

**LTO BEP-20 address : 0x857B222Fc79e1cBBf8Ca5f78CB133d1b7CF34BBd**

![Copy the address into the search field to avoid mistakes.](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB0RTB-jl8RVmWX9aeE%2F-MbQAezspNhLL3Ng7Str%2F-MbQC7ZL9mHVy1k-w74r%2FScreen%20Shot%202021-06-05%20at%2010.03.25.png?alt=media\&token=a859781c-0e7b-4cb6-9984-8207352c8154)

Confirm your selection and you're ready to go. LTO token (LTO) should now appear in your MetaMask token overview and you are set up to explore PancakeSwap.&#x20;

## PancakeSwap

On PancakeSwap we will be swapping BNB for LTO tokens. First, you need to connect your wallet to PancakeSwap. We will be using MetaMask for this tutorial, see the preparation steps above for the necessary prerequisites. Second, you need to make sure there is actually some BNB in your wallet. If you don't own any BNB you can't swap them for LTO tokens.

### Finding LTO on PancakeSwap

First of all, connect your wallet to PancakeSwap, and in the options menu on the left select *Trade* > *Exchange*.

![](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB0RTB-jl8RVmWX9aeE%2F-MbQE4RAGZVboxZScoG7%2F-MbRgQlWwcWlZzmKVCHX%2FScreen%20Shot%202021-06-05%20at%2010.34.35.png?alt=media\&token=538a35b5-c82e-43ff-86f5-228be25077fc)

Next, you will be presented with the following dialog:

![PancakeSwap BNB <> token Exchange.](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB0RTB-jl8RVmWX9aeE%2F-MbQE4RAGZVboxZScoG7%2F-MbRiWOh7Q8WCKmzBdTj%2FScreen%20Shot%202021-06-05%20at%2010.35.15.png?alt=media\&token=51012864-f88e-434a-8278-c7c0647dd765)

Similar to our import of LTO tokens in MetaMask, we will be adding the token to our transaction. You need to select LTO tokens and import them.

![LTO token import dialog (left) and import confirmation (right) on PancakeSwap.](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB0RTB-jl8RVmWX9aeE%2F-MbQE4RAGZVboxZScoG7%2F-MbRjUydICNwNRDZSOqR%2FLTO_token_import_PS.jpg?alt=media\&token=2f33363c-a15a-492e-91d9-d21d7241108b)

{% hint style="danger" %}
Always double-check the address of the imported token. If it's not **0x857B222Fc79e1cBBf8Ca5f78CB133d1b7CF34BBd** something might not be correct and you should not continue with the import.
{% endhint %}

### Buying LTO on PancakeSwap

Now you're all set for the swap. Select the amount you wish to swap and if the conditions seem to your liking confirm the swap.

![Swap conditions will be shown before you can finally start the swap.](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB0RTB-jl8RVmWX9aeE%2F-MbQE4RAGZVboxZScoG7%2F-MbRgh3qbNnj91nYAaEB%2FScreen%20Shot%202021-06-05%20at%2016.27.47.png?alt=media\&token=0245df01-1e14-46ea-87a6-244445ab230c)

After your confirmation, the swap will be started. Shortly after you should be able to see the results in your MetaMask wallet already:

![As a result of the swap your LTO tokens will appear in your MetaMask wallet.](https://4048573506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB0RTB-jl8RVmWX9aeE%2F-MbQE4RAGZVboxZScoG7%2F-MbRfVRo90ybgwMglVY0%2FScreen%20Shot%202021-06-05%20at%2016.28.38.png?alt=media\&token=ecbdb24b-395b-4ba4-a206-bf4edc0c915e)

### Transferring LTO from PancakeSwap

Contrary to our CEX tutorials, if you use a DEX like PancakeSwap there is no need to transfer your tokens from PancakeSwap since they are already in your wallet. However, the current tokens you hold are BEP-20 LTO tokens. We summarized an[ additional tutorial in our blog](https://blog.ltonetwork.com/how-to-swap-lto-bep2-to-lto-bep20/) on how to transfer BEP-20 tokens to BEP-2 tokens and vice versa. To transfer BEP-2 to the mainnet simply refer to our LTO token bridge tutorial on transferring **exchange tokens to mainnet tokens**.

{% hint style="info" %}
An obvious alternative to LTO's bridge mechanism at this point is Binance itself. If you send the BEP-2 / BEP-20 LTO tokens to your Binance account you will be able to withdraw LTO as any supported token:

* Mainnet,
* ERC-20,
* BEP-2, and
* BEP-20.&#x20;
  {% endhint %}

{% content-ref url="../using-the-lto-bridge" %}
[using-the-lto-bridge](https://docs.ltonetwork.com/tutorials/buying-and-staking-lto/using-the-lto-bridge)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ltonetwork.com/tutorials/buying-and-staking-lto/exchanges/pancake-swap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
