Documentation ¶
Index ¶
Constants ¶
View Source
const TotalPositiveTransfersPerTransaction = 9
Variables ¶
This section is empty.
Functions ¶
func SplitAccountAmounts ¶
func SplitAccountAmounts(positiveAccountAmounts []transfer.Hedera, negativeAccountAmount transfer.Hedera) [][]transfer.Hedera
SplitAccountAmounts splits account amounts to a chunks of TotalPositiveTransfersPerTransaction + 1 (1 comes from the negative account amount, opposite to the sum of the positive account amounts) It is necessary, because at this given moment, Hedera does not support a transfer transaction with a transfer list exceeding (TotalPositiveTransfersPerTransaction + 1)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) CalculateMemberDistribution ¶
CalculateMemberDistribution Returns an equally divided to each member
func (Service) PrepareTransfers ¶
func (Service) ValidAmount ¶
ValidAmount Returns the closest amount, which can be equally divided to members
Click to show internal directories.
Click to hide internal directories.