Example
Properties
maxAmountPerPayment?
asset is set the cap only applies to payments in
that asset — payments in any other asset are left uncapped by this field
(atomic units are not comparable across assets with different decimals).
Omit asset to cap every payment by raw atomic amount.
maxCumulativeSpend?
maxAmountPerPayment, asset is required
(enforced when spend controls are applied) because cross-asset atomic units
cannot be summed.
maxCumulativeSpendWindow?
allowedNetworks?
allowedAssets?
allowedPayees?
onApproachingLimit()?
Parameters
spent
Amount
limit
Amount
Returns
void