distributor

package
v0.0.1-alpha-9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(members []string) *Service

func (Service) CalculateMemberDistribution

func (s Service) CalculateMemberDistribution(amount int64) ([]transfer.Hedera, error)

CalculateMemberDistribution Returns an equally divided to each member

func (Service) ValidAmount

func (s Service) ValidAmount(amount int64) int64

ValidAmount Returns the closest amount, which can be equally divided to members

Jump to

Keyboard shortcuts

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