SpendingLimit

data class SpendingLimit(val spendingLimit: BigInteger, val periodLedgers: UInt) : PolicyInstallParams

Spending limit policy restricting total amount per time period.

Limits the total amount that can be spent within a rolling time window. The period is specified in ledgers (approximately 5 seconds per ledger).

Constructors

Link copied to clipboard
constructor(spendingLimit: BigInteger, periodLedgers: UInt)

Properties

Link copied to clipboard

Time window in ledgers (e.g., 17,280 for one day)

Link copied to clipboard
val spendingLimit: BigInteger

Maximum amount in stroops for the period (as BigInteger)