vote
Last updated
Last updated
An entrypoint that executes voting for a bakers on this Bucket contract. Also it updates users' global rewards and the rewards of the user who votes.
Field | Type | Description |
---|---|---|
Only DexCore contract can call this entrypoint.
403
- sender
of the transaction is not DexCore contract.
412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
voter
address
A user who votes
candidate
key_hash
Baker the user votes for
execute_voting
bool
Flag that indicates: execute voting or not
votes
nat
Amount of votes that will be used for voting