Comment on page
check_is_banned_baker
This on-chain view checks if baker on the specific Bucket contract is banned or not. If baker is banned, voting for him is not possible.
type token_id_t is nat
type is_banned_baker_t is key_hash
type check_is_banned_t is [@layout:comb] record [
pair_id : token_id_t;
baker : is_banned_baker_t;
]
Field | Type | Description |
---|---|---|
pair_id | token_id_t (nat) | Pair ID for which you need to check if baker is banned or not |
baker | is_banned_baker_t (key_hash) | Baker to check |
bool
🌮 Taquito
const dexCoreAddress = "KT1...";
const params = {
pair_id: 1,
baker: "tz1...",
};
const viewCaller = "tz1...";
const dexCore = await tezos.contract.at(dexCoreAddress);
const isBannedBaker = await dexCore.contract.contractViews.check_is_banned_baker(params).executeView({ viewCaller: viewCaller });
108
- pair (pool) with the specifiedtoken_id
not listed.
Last modified 1yr ago