Comment on page
vote
type token_id_t is nat
type dex_vote_t is [@layout:comb] record [
pair_id : token_id_t;
candidate : key_hash;
]
Field | Type | Description |
---|---|---|
pair_id | token_id_t (nat) | Identifier of the liquidity pool (pair) |
candidate | key_hash | Baker the user votes for |
🌮 Taquito
const dexCoreAddress = "KT1...";
const parmas = {
pair_id: 0,
candidate: "tz1...",
};
const dexCore = await tezos.contract.at(dexCoreAddress);
const operation = await dexCore.methodsObject.vote(parmas).send();
await operation.confirmation();
108
- pair (pool) with the specifiedtoken_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).
Last modified 1yr ago