deposit
Call parameters
type deposit_type is [@layout:comb] record [
fid : fid_type;
amt : nat;
referrer : option(address);
rewards_receiver : address;
candidate : option(key_hash);
]Field
Type
Description
Usage
const qFarmAddress = "KT1...";
const params = {
fid: 1,
amt: 100,
referrer: "tz1.../KT1...", // or null
rewards_receiver: "tz1.../KT1...",
candidate: "tz1...", // or null
};
const qFarm = await tezos.contract.at(qFarmAddress);
const operation = await qFarm.methodsObject.deposit(params).send();
await operation.confirmation();Errors
Last updated