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
).
Last updated