formulas

package
v0.0.0-...-7bd4979 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Precision is 28 as Python Decimal by default supports upto 28 decimal precision
	// Warning: Change in precision will result into fork
	PythonPrecision = 28
)

Functions

func BigDiv

func BigDiv(dividend *decimal.Big, divisor *decimal.Big) *decimal.Big

func BlockReward

func BlockReward(coinRemainingAtGenesis uint64, blockNumber uint64) uint64

func CalcCoeff

func CalcCoeff(coinRemainingAtGenesis uint64) *decimal.Big

func Median

func Median(data []int) float64

func RemainingEmission

func RemainingEmission(coinRemainingAtGenesis uint64, blockNumber uint64) int64

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(data []decimal.Big) *Generator

func (*Generator) Next

func (g *Generator) Next() bool

func (*Generator) Term

func (g *Generator) Term() math2.Term

Jump to

Keyboard shortcuts

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