# Smart Contracts (EVM)

## Main contracts

The following links will take you to the BscScan page for PancakeSwap's main smart contracts.

* [PancakeSwap: Main Staking Contract/MasterChef v3](https://bscscan.com/address/0x556B9306565093C855AEA9AE92A594704c2Cd59e)
* [PancakeSwap: Factory v3](https://bscscan.com/address/0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865)
* [PancakeSwap: Router v3](https://bscscan.com/address/0x13f4EA83D0bd40E75C8222255bc855a974568Dd4)
* [PancakeSwap: Main Staking Contract/MasterChef v2](https://bscscan.com/address/0xa5f8C5Dbd5F286960b9d90548680aE5ebFf07652)
* [PancakeSwap: Factory v2](https://bscscan.com/address/0xca143ce32fe78f1f7019d7d551a6402fc5350c73)
* [PancakeSwap: Router v2](https://bscscan.com/address/0x10ed43c718714eb63d5aa57b78b54704e256024e)
* [PancakeSwap: NFT Market v1](https://bscscan.com/address/0x17539cca21c7933df5c980172d22659b8c345c5a)
* Others:
  * [Farms Contracts](#farms-contracts)
  * [IFO Contracts](#ifo-contracts)

## Liquidity pool contracts

Each liquidity pool created by PancakeSwap has its own smart contract. Follow the steps below to view the LP (liquidity pool) token's smart contract on a specific farm.

1 - Go to the [PancakeSwap Farms page](https://pancakeswap.finance/farms) and click the row of the Farm you want to see the contract for.

![](https://52381392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJgu5vsJ53ypzMGYZalMA%2Fuploads%2Fgit-blob-4ae64255c9ed5dc29220aff8e57eca78f896c773%2Fimage%20\(126\).png?alt=media)

2 - When the details section expands out, click the **View Contract** link on the left to open the contract in BscScan.

![](https://52381392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJgu5vsJ53ypzMGYZalMA%2Fuploads%2Fgit-blob-4062216877a4808125f785915da421c5e70e923e%2Fimage%20\(127\).png?alt=media)

## IFO contracts

IFO contracts are unique to each new IFO. Follow the steps below to view an IFO's smart contract.

### Current or most recent IFO

Go to the [PancakeSwap IFO page](https://pancakeswap.finance/ifo) and look on the bottom right of the IFO information for a **View Contract** link.

![](https://52381392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJgu5vsJ53ypzMGYZalMA%2Fuploads%2Fgit-blob-f599de6091dd62e5d083622c4da31b9cc2c923d3%2Fimage%20\(128\).png?alt=media)

### Previous IFOs

1 - Go to the [PancakeSwap IFO page](https://pancakeswap.finance/ifo) and click the **Past IFOs** toggle at the top of the page.

![](https://52381392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJgu5vsJ53ypzMGYZalMA%2Fuploads%2Fgit-blob-c52fe52ef50c745c9418c71d229da726bcc97a09%2Fimage%20\(129\).png?alt=media)

2 - Find the banner of the IFO you'd like to see and click the **down arrow** button to expand it.

![](https://52381392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJgu5vsJ53ypzMGYZalMA%2Fuploads%2Fgit-blob-2afdd41b98d39332575003b46845dad454774741%2Fimage%20\(130\).png?alt=media)

3 - Find and click the **View Contract** link on the bottom right of the expanded information.

![](https://52381392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJgu5vsJ53ypzMGYZalMA%2Fuploads%2Fgit-blob-0fa57b01e08f0eca12e73b447c1864c5234f58ea%2Fimage%20\(131\).png?alt=media)


---

# 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.payswap.org/espanol/developers/smart-contracts.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.
