Skip to content

EstimatedReward

enum EstimatedReward

What a campaign pays out. .percentage has no concrete amount to advertise, so it is suppressed from display. .unknown covers a payoutType newer than this binary.

Conforms to Swift.Equatable, Swift.Hashable, Swift.Sendable

Defined in: Sources/FrakSDK/Rewards/Rewards.swift:48

case fixed(amount: TokenAmount)

EstimatedReward.percentage(percent:percentOf:maxAmount:minAmount:)

Section titled “EstimatedReward.percentage(percent:percentOf:maxAmount:minAmount:)”
case percentage(
percent: Double,
percentOf: String,
maxAmount: TokenAmount?,
minAmount: TokenAmount?
)
case tiered(tierField: String, tiers: [RewardTier])
case unknown(payoutType: String)

!=(::)

static func != (lhs: Self, rhs: Self) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

  • Parameters:
    • lhs: A value to compare.
    • rhs: Another value to compare.