award

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2019 License: GPL-3.0, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateAwardsForDepositContractNodes

func CalculateAwardsForDepositContractNodes(coinDays uint64, yearRateFloat64 float64) uint64

计算币龄所得奖励

func GetAwardsWithCoins

func GetAwardsWithCoins(coinAmount uint64, lastModifyTime time.Time, yearRateFloat64 float64) uint64

直接获取持币的奖励

func GetCoinDay

func GetCoinDay(amount uint64, lastModifyTime time.Time) uint64

获取币的币龄

func GetCoinDayInterest

func GetCoinDayInterest(receiveTime, spendTime int64, amount uint64, interestRate float64) uint64

计算币天的利息

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL