Module payout

Source
Expand description

Defines pluggable payout models for computing the total reward value from an input signal.

Payouts are abstracted as transformation models that convert an input quantity into a single distributable value.

§Concept

  • A payout model determines how much total value should be generated.
  • The computed payout acts as the source value for downstream distribution.

§In this model:

  • Input is a scalar representing a measurable quantity.
  • Output is a single payout value.

§Purpose

Payout models provide flexibility in defining reward generation:

  • Control how total rewards are computed from inputs.
  • Enable configurable reward policies.
  • Serve as the first stage in reward distribution pipelines.

Structs§

ConstantPayout
The ConstantPayout model returns a fixed reward value regardless of the provided input.
ConstantPayoutConfig
Defines the configuration for the ConstantPayout model.
CurveParams
Defines parameters for a logistic (sigmoid) curve used in piecewise reward modeling.
ExpDecayPayout
The ExpDecayPayout model computes rewards using a continuous exponential decay based on the input variable.
ExpDecayPayoutConfig
Defines the configuration for the ExpDecayPayout model.
FixedAnnualConfig
Defines the configuration for the FixedAnnualPayout model.
FixedAnnualPayout
The FixedAnnualPayout model computes rewards using a per-period rate derived from an annual percentage rate (APR).
FixedRateConfig
Defines the configuration for the FixedRatePayout model.
FixedRatePayout
The FixedRatePayout model computes rewards using a fixed proportional rate, scaling linearly with the input asset.
HalvingPayout
The HalvingPayout model computes rewards using a binary exponential decay based on the input interval.
HalvingPayoutConfig
Defines the configuration for the HalvingPayout model.
InflationPayout
The InflationPayout model computes rewards as a fixed proportion of the input asset, based on a configured inflation rate.
InflationPayoutConfig
Defines the configuration for the InflationPayout model.
InverseProportionalConfig
Defines the configuration for the InverseProportionalPayout model.
InverseProportionalPayout
The InverseProportionalPayout model computes rewards using an inverse function of the input asset.
LinearPayout
The LinearPayout model computes rewards using a linear function of the input asset.
LinearPayoutConfig
Defines the configuration for the LinearPayout model.
LogarithmicConfig
Defines the configuration for the LogarithmicPayout model.
LogarithmicPayout
The LogarithmicPayout model computes rewards using a logarithmic function, producing fast initial growth followed by diminishing returns.
PiecewiseConfig
Defines the configuration for the PiecewisePayout model.
PiecewisePayout
The PiecewisePayout model computes rewards using a piecewise-defined function, selecting different behaviors depending on the input range.
QuadraticPayout
The QuadraticPayout model computes rewards using a quadratic function of the input asset.
QuadraticPayoutConfig
Defines the configuration for the QuadraticPayout model.
SigmoidPayout
The SigmoidPayout model computes rewards using a logistic (S-shaped) function, producing slow start, rapid growth, and eventual saturation.
SigmoidPayoutConfig
Defines the configuration for the SigmoidPayout model.
ZeroPayout
A payout model that always returns zero.

Enums§

Segment
Defines a piecewise segment used in PiecewisePayout.