Function chain_impl_mockchain::stake::distribution::get_distribution
source · pub fn get_distribution(
accounts: &Ledger,
dstate: &PoolsState,
utxos: &Ledger<Address>
) -> StakeDistribution
Expand description
Calculate the Stake Distribution where the source of stake is coming from utxos and accounts, and where the main targets is to calculate each value associated with known stake pools.
Everything that is linked to a stake pool that doesn’t exist, will be added to dangling stake, whereas all the utxo / accounts that doesn’t have any delegation setup, will be counted towards the unassigned stake.