MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / sequentialAllocation

Method sequentialAllocation

lineage.go:917–958  ·  view source on GitHub ↗

sequentialAllocation allocates funds sequentially from sources (used for FIFO/LIFO). Parameters: - sources []LineageSource: The available fund sources in order. - amount *big.Int: The amount to allocate. Returns: - []Allocation: The calculated allocations.

(sources []LineageSource, amount *big.Int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

calculateAllocationMethod · 0.95

Calls 1

SetMethod · 0.65

Tested by 1