EstimatedReward
Ce contenu n’est pas encore disponible dans votre langue.
enum EstimatedRewardWhat 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
EstimatedReward.fixed(amount:)
Section titled “EstimatedReward.fixed(amount:)”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?)EstimatedReward.tiered(tierField:tiers:)
Section titled “EstimatedReward.tiered(tierField:tiers:)”case tiered(tierField: String, tiers: [RewardTier])EstimatedReward.unknown(payoutType:)
Section titled “EstimatedReward.unknown(payoutType:)”case unknown(payoutType: String)Operators
Section titled “Operators”!=(::)
static func != (lhs: Self, rhs: Self) -> BoolReturns 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.