> For the complete documentation index, see [llms.txt](https://derby-finance.gitbook.io/derby-finance-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://derby-finance.gitbook.io/derby-finance-docs/game/user-interactions/redeem-rewards.md).

# Redeem rewards

With this function the user can redeem its rewards. The user does this by calling the following function in our game contract:

`function redeemRewards(uint256 _basketId) external onlyBasketOwner(_basketId)`

Where `_basketId` refers to the id associated with the user's basket. By calling this function the rewards will be transferred to the adres of the user (the `msg.sender`).
