# Smart Contracts

## Main contracts

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

* [HakuSwap: Main Staking Contract/MasterChef](https://snowtrace.io/address/0xBA438A6F03c03fb1Cf86567F6bb866CCFc9B2da7)
* [HakuSwap: Factory](https://snowtrace.io/address/0x2Db46fEB38C57a6621BCa4d97820e1fc1de40f41)
* [HakuSwap: Router](https://snowtrace.io/address/0x5f1fdca239362c5b8a8ada26a256ac5626cc33e0)
* [MultiCall](https://snowtrace.io/address/0x98e2060F672FD1656a07bc12D7253b5e41bF3876)
* [Oracle](https://snowtrace.io/address/0x734fce17e8A6cCb4a86666214CB040632f92e866#code)
* [Swap Mining](https://snowtrace.io/address/0x274b23d3b6d122CB47ECc11F73b1973eB60E4e0f)
* [HAKU Token](https://snowtrace.io/address/0x695fa794d59106cebd40ab5f5ca19f458c723829)
* [xHAKU](https://snowtrace.io/address/0xa95C238B5a72f481f6Abd50f951F01891130b441)
* [LakeofHaku](https://snowtrace.io/address/0x19e0fb459feecb00fe77654e674c83143682a13d)
* INIT Hash Code: 0xf0a389c88c385a3fa20755278000aabbe86028f1b77659475569f3575b2aebe3

## Farms contracts

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

1\. Go to the [HakuSwap Farms page](https://hakuswap.com/farms) and click the row of the Farm you want to see the contract for.

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

![](/files/hgUEQgZLBBwUliipOGYt)

## Staking Pool contracts <a href="#farms-contracts" id="farms-contracts"></a>

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

1\. Go to the HakuSwap Pools page and click the row of the Pool you want to see the contract for.

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


---

# 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.hakuswap.com/developer-resources/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.
