> For the complete documentation index, see [llms.txt](https://docs.gnoswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gnoswap.io/contracts/launchpad/launchpad_reward.gno.md).

# launchpad\_reward.gno

{% embed url="<https://github.com/gnoswap-labs/gnoswap/blob/main/contract/r/gnoswap/launchpad/v1/launchpad_reward.gno>" %}

## CollectRewardByDepositId

```go
func CollectRewardByDepositId(
	cur realm,
	depositID string
) int64
```

CollectRewardByDepositId collects the project token reward for users using a depositId.

#### Parameters

| Name        | Type   | Description                                  |
| ----------- | ------ | -------------------------------------------- |
| `cur`       | realm  | Pass `cross` as argument.                    |
| `depositID` | string | The ID of a deposit to collect reward token. |

#### Return Values

| Name     | Type  | Description                           |
| -------- | ----- | ------------------------------------- |
| `amount` | int64 | The amount of collected reward token. |
