# Rewards

## For a specific pool token

This function claims the rewards for a specific pool token.

```solidity
function claimReward(address _poolToken, address _user) external nonpayable
```

**Arguments**

<table><thead><tr><th width="166.33333333333334">Name</th><th width="126">Type</th><th>Description</th></tr></thead><tbody><tr><td>_poolToken</td><td>address</td><td>the address of the pool token</td></tr><tr><td>_user</td><td>address</td><td>the address of user to claim reward from. Only the wrapper contract may pass a non-zero value. For all other cases the msg.sender will be used.</td></tr></tbody></table>

## For all pool tokens

This function claims the rewards for all pool tokens that the user has deposited.

```solidity
function claimRewardFromAllPools(address _user) external nonpayable
```

**Arguments**

<table><thead><tr><th width="140.33333333333334">Name</th><th width="154">Type</th><th>Description</th></tr></thead><tbody><tr><td>_user</td><td>address</td><td>the address of user to claim reward from. Only the wrapper contract may pass a non-zero value. For all other cases the msg.sender will be used.</td></tr></tbody></table>


---

# 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://build.sovryn.com/builder-portal/smart-contracts/liquidity-mining/rewards.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.
