# Smart Contracts

This page provides links or locations for PancakeSwap's smart contracts.

## Main contracts

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

* [PancakeSwap: Main Staking Contract/MasterChef](https://bscscan.com/address/0x73feaa1ee314f8c655e354234017be2193c9e24e)
* [PancakeSwap: Factory v2](https://bscscan.com/address/0xca143ce32fe78f1f7019d7d551a6402fc5350c73)
* [PancakeSwap: Router v2](https://bscscan.com/address/0x10ed43c718714eb63d5aa57b78b54704e256024e)
* [PancakeSwap: Lottery v2](https://bscscan.com/address/0x5aF6D33DE2ccEC94efb1bDF8f92Bd58085432d2c)
* [PancakeSwap: Prediction v2](https://bscscan.com/address/0x18b2a687610328590bc8f2e5fedde3b582a49cda)
* [PancakeSwap: NFT Market v1](https://bscscan.com/address/0x17539cca21c7933df5c980172d22659b8c345c5a)
* Others:
  * [Farms Contracts](#farms-contracts)
  * [IFO Contracts](#ifo-contracts)

## Farms contracts

Each Farm used by PancakeSwap has its own smart contract. Follow the steps below to view a Farm's smart contract.

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://2263397071-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)

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

![](https://2263397071-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://2263397071-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://2263397071-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)

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

![](https://2263397071-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)

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

![](https://2263397071-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)
