Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializePriceConverter ¶
InitializePriceConverter initialize price converter only once
Example ¶
for _, typ := range []string{"usd", "btc", "unknown"} { fmt.Println(InitializePriceConverter(typ)) }
Output: <nil> <nil> converter unknown not exist
func RandomReward ¶
func RandomReward(rates []models.RewardRate) int64
RandomReward generates a random reward with rates given
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.