Aller au contenu

EstimatedReward

Ce contenu n’est pas encore disponible dans votre langue.

EstimatedReward = { amount: TokenAmountType; payoutType: "fixed"; } | { maxAmount?: TokenAmountType; minAmount?: TokenAmountType; payoutType: "percentage"; percent: number; percentOf: string; } | { payoutType: "tiered"; tierField: string; tiers: RewardTier[]; }

Defined in: types/rpc/merchantInformation.ts:37

Estimated reward amount — discriminated union by payout type

  • fixed: A known token amount (with fiat equivalents)
  • percentage: A percent of a purchase field (e.g. 5% of purchase_amount), with optional min/max caps
  • tiered: Amount depends on a field value matching tier brackets