Contract 70fe44694c9fe6b0abc69a6da4858fc2aaba04fa10492a466a1d426d04ca8560

← Back to Index 📥 Download WASM

Meta

binver 2.0.0
desc Harvest all available KALE for your farmer.
rssdkver 22.0.7#211569aa49c8d896877dfca1f2eb4fe9071121c8
rsver 1.85.1
title KaleFail Tractor

Instances

  • CBGSBKYMYO6OMGHQXXNOBRGVUDFUDVC2XLC3SXON5R2SNXILR7XCKKY3

Interface

fn __constructor(env: soroban_sdk::Env, farm: soroban_sdk::Address)

Harvest multiple pails available for your KALE farmer.

Arguments

  • farmer - address of the farmer to harvest on behalf of
  • pails - vector of pails which should be harvested

Panics

  • If the pails vector is empty
  • If no pails result in a non-zero reward
fn harvest(
    env: soroban_sdk::Env,
    farmer: soroban_sdk::Address,
    pails: soroban_sdk::Vec,
) -> soroban_sdk::Vec

Imports

WebAssembly Text (WAT) ▶