withdraw_profit
An entrypoint that withdraws bakers' rewards from TOK/TEZ liquidity pools (pairs).
Call parameters
Field
Type
Description
receiver
contract(unit)
Receiver of withdrawn bakers' rewards
pair_id
token_id_t
Identifier of the liquidity pool (pair)
Usage
Errors
108
- pair (pool) with the specifiedtoken_id
not listed.113
- a Bucket contract not found (not TOK/TEZ LP pair).136
- reentrancy.412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
Last updated