set_fees
Last updated
const farmId = 1;
const harvestFee = 0.05 * 10 ** 16; // 0.05%
const withdrawalFee = 0.25 * 10 ** 16; // 0.25%
const tFarmAddress = "KT1...";
const fees = [
{
fid: farmId,
fees: {
harvest_fee: harvestFee,
withdrawal_fee: withdrawalFee,
},
},
...
];
const tFarm = await tezos.contract.at(tFarmAddress);
const operation = await tFarm.methods.set_fees(fees).send();
await operation.confirmation();