Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Region currency_lib.Code
Presets Presets
}
Entry pairs a currency with its presets.
func AllPresets ¶
func AllPresets() []Entry
AllPresets returns every currency's presets, ordered by currency code.
type Presets ¶
Presets are the payment amounts offered for a currency, in major currency units. Minimum is the floor enforced on the payment that opens a DM, send or tip, when the recipient has set no DM chat initialization fee, and the least such a fee may be; the remaining tiers are the amounts clients surface as one-tap presets.
func PresetsFor ¶
func PresetsFor(region currency_lib.Code) (Presets, bool)
PresetsFor returns the presets for a currency, and whether it has any.
Click to show internal directories.
Click to hide internal directories.