> For the complete documentation index, see [llms.txt](https://docs.sirius.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sirius.finance/development/smart-contracts/farming.md).

# Farming

## Contract info

**Contract name:** Farming

**Contract address**

* 4Pool: 0xCfd15008Df89D961611071BfC36e220204E9A3a8
* Starlay 4Pool: 0x1026F7B0f4A79C9caE3715035730419740A858FD
* BAI Metapool: 0xBbabf2184FbC4DFB17207E74cdB6B1587Dc158a4
* JPYC Metapool: 0xe1762b802Cf306C60b0C2C1af991646eFc8B5C6b
* WBTC Metapool: 0x7f2fbBa3dd14Ef24aFA22E92796791D9a38bFBE0
* WETH Metapool: 0x9e56b431AA4Bc8B8D04057977e3606A9110E479f
* WBNB Metapool: 0x941e9BEF5b558D7Ca97aBC98e0664E804A9C4B7b
* oUSD Metapool: 0x5FF4735274b0C7ADf7de52768645aA08AE4bcB20
* nASTR Stablepool: 0xdCfFa5a92ef31DCc8979Ab44A0406859d7763c45

View [Sirius on Github](https://github.com/SiriusFinance/siriusfinance-contract)

***

> For showing TVL/APR, please refer to: <https://docs.sirius.finance/development/frontend>

## Interfaces

## Write functions

### **Deposit**

```
void deposit(uint256 value, address account, bool claimRewards);
```

### **Withdraw**

```
void withdraw(uint256 value,bool claimRewards);
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.sirius.finance/development/smart-contracts/farming.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
