withdraw_rewards
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.
Call parameters
Field
Type
Description
receiver
contract(unit)
Receiver of TEZ tokens
user
address
User whose rewards need to be withdrawn
Usage
Only DexCore contract can call this entrypoint.
Errors
403
-sender
of the transaction is not DexCore contract.412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
Last updated