claim_interface_tez_fee

An entrypoint that allows users to claim their interface (referral) fee. Will claim all available fee. Supports only withdrawing of TEZ tokens from the specific Bucket contract. To withdraw TEZ tokens use claim_interface_fee entrypoint.

Call parameters

type token_id_t         is nat

type claim_tez_fee_t    is [@layout:comb] record [
  pair_id                 : token_id_t;
  receiver                : address;
]
FieldTypeDescription

pair_id

token_id_t (nat)

Identifier of the liquidity pool (pair)

receiver

address

Receiver of withdrawn tokens

Usage

const dexCoreAddress = "KT1...";
const parmas = {
    pair_id: 0,
    receiver: "tz1.../KT1...",
};
const dexCore = await tezos.contract.at(dexCoreAddress);
const operation = await dexCore.methodsObject.claim_interface_tez_fee(parmas).send();

await operation.confirmation();

Errors

  • 108 - pair (pool) with the specified token_id not listed.

  • 113 - a Bucket contract not found (not TOK/TEZ LP pair).

  • 136 - reentrancy.

  • 409 - TEZ tokens receiver contract not found (not user account or contract doesn't have a default entrypoint).

  • 412 - non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).

Last updated