vote
Last updated
Last updated
An entrypoint that executes for bakers on the specified contract. Also, it updates users' global rewards and the rewards of the user who votes. Voting is possible only in TOK/TEZ liquidity pools (pairs).
pair_id
token_id_t (nat)
Identifier of the liquidity pool (pair)
candidate
key_hash
Baker the user votes for
108
- pair (pool) with the specified token_id
not listed.
136
- reentrancy.
140
- can't perform voting because of zero LPs balance of the user.
412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
113
- a contract not found (not TOK/TEZ LP pair).