# 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://1537385970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MmAKM1uBRsaHufNf3DD%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://1537385970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MmAKM1uBRsaHufNf3DD%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://1537385970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MmAKM1uBRsaHufNf3DD%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://1537385970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MmAKM1uBRsaHufNf3DD%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://1537385970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MmAKM1uBRsaHufNf3DD%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://1537385970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MmAKM1uBRsaHufNf3DD%2Fuploads%2Fgit-blob-0fa57b01e08f0eca12e73b447c1864c5234f58ea%2Fimage%20\(131\).png?alt=media)
