> 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/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/launchpad/v1/launchpad_reward.gno>" %}

## CollectRewardByDepositId

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

CollectRewardByDepositId collects the project-token reward earned by a deposit.

> **Halt check:** reverts while the Withdraw halt scope is active.

#### Parameters

| Name        | Type   | Description                                                                  |
| ----------- | ------ | ---------------------------------------------------------------------------- |
| `cur`       | realm  | current realm context; callers use cross(cur) when crossing into this realm. |
| `depositID` | string | identifier of the deposit whose reward is collected.                         |

#### Return Values

| Name     | Type  | Description                                               |
| -------- | ----- | --------------------------------------------------------- |
| `amount` | int64 | project-token reward amount transferred to the depositor. |

[source](https://github.com/gnoswap-labs/gnoswap/blob/d9d34bd345a36c3eedaccf491c6615b0ac4168cd/contract/r/gnoswap/launchpad/proxy.gno#L139)
