withdraw_profit
Call parameters
type token_id_t is nat
type withdraw_profit_t is [@layout:comb] record [
receiver : contract(unit);
pair_id : token_id_t;
]Field
Type
Description
Usage
const dexCoreAddress = "KT1...";
const parmas = {
receiver: "tz1.../KT1...",
pair_id: 0,
};
const dexCore = await tezos.contract.at(dexCoreAddress);
const operation = await dexCore.methodsObject.withdraw_profit(parmas).send();
await operation.confirmation();Errors
Last updated