withdraw_rewards
Last updated
Last updated
An entrypoint that updates users' global rewards. Also it updates the rewards of the user who wants to make a withdrawal. After all updates it executes a withdrawal of bakers' rewards for the specified user.
receiver
contract(unit)
Receiver of TEZ tokens
user
address
User whose rewards need to be withdrawn
Only contract can call this entrypoint.
403
- sender
of the transaction is not contract.
412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).