# 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 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://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-McgZ8b3Jbc0UPFnXJh_%2F-McgaWMy3r2LVBMe7YXr%2Fimage.png?alt=media\&token=b0c05d89-7329-413e-bd13-fe7c3163ae47)

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

![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-McgZ8b3Jbc0UPFnXJh_%2F-Mcgb5386aAhXZikm0u_%2Fimage.png?alt=media\&token=9ab016e5-0cff-47e2-af57-1c39af62b362)

## 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://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-McgZ8b3Jbc0UPFnXJh_%2F-McgkqFkMNqvcg8DHEiZ%2Fimage.png?alt=media\&token=26179324-b18e-4b52-b3e3-e4147126b072)

### 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://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-McgZ8b3Jbc0UPFnXJh_%2F-Mcgl8sgSgER5ERDO8cq%2Fimage.png?alt=media\&token=92b0403b-3186-407f-875c-50d7d64a250e)

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

![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-McgZ8b3Jbc0UPFnXJh_%2F-McglZZB0929no3mUL1a%2Fimage.png?alt=media\&token=298daab6-0989-43f0-994b-0180d80fe29b)

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

![](https://2908774936-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MHREX7DHcljbY5IkjgJ%2F-McgZ8b3Jbc0UPFnXJh_%2F-McgluuVgNseeKWmomk9%2Fimage.png?alt=media\&token=f5b717a7-4d09-4a76-92b1-3fbb7f4f7659)
