docs: MinTCYForTCYStakeDistribution is a per-staker threshold in 1e8 units, not 100,000 TCY held in the fund

Documentation correction

"docs/mimir.md" describes behavior the code does not have.

What the doc says vs. what the code does: The doc says MinTCYForTCYStakeDistribution is the 'Minimum TCY required in the TCY fund to be eligible for distribution (default: 100,000 TCY)'. constants/constants_v1.go sets MinTCYForTCYStakeDistribution: 100000, a raw amount in 1e8 notation (0.001 TCY), not 100,000 TCY. In x/thorchain/manager_network_current.go, getTCYDistributions compares that value to each staker's staked amount (staker.Amount.LT(minTCYMultipleUint) → continue). So it is the minimum stake a single staker needs to get a distribution, not a minimum balance for the TCY fund.

Code that contradicts it:

MinTCYForTCYStakeDistribution:       100000,             // Set what is the minimum amount of TCY need it on TCY fund in order to be distributed
...
		minTCYMultipleUint       = math.NewUint(uint64(minTCYMultiple))
...
		// only consider amount greater or equal to MinTCYForTCYStakeDistribution
		if staker.Amount.LT(minTCYMultipleUint) {
			continue
		}

Correction applied: Change the line to: MinTCYForTCYStakeDistribution: Minimum TCY a staker must have staked to be included in a RUNE distribution (default: 100000 in 1e8 notation = 0.001 TCY).


Found by huginn's documentation audit and confirmed by independent models before this MR was opened. The audit only corrects existing statements — it never adds new documentation — so this diff touches one file and changes only the inaccurate passage.

🤖 Generated with Claude Code

Merge request reports

Loading
Loading