Type Alias RewardFn

Source
pub type RewardFn = fn(&RewardCtx<'_>) -> Result<Vec<ESCurrencyUnit>>;
Expand description

Signature of a bundle currency-step reward fn. Free fn (no captured state) so it is Copy and trivially stored in the registry.