Closed ghost closed 3 years ago
const farm = orca.getFarm(OrcaFarmConfig.ORCA_SOL_AQ); const amount = await farm.getHarvestableAmount(owner.publicKey); // <-- NEW API console.log("Harvestable amount:", amount.toNumber()); const harvestPayload = await farm.harvest(owner); // <-- NEW API const harvestTxId = await harvestPayload.execute(); console.log("Harvest complete:", harvestTxId);
Changes
Usage