IntersectMBO / IntersectMBO/cardano-ledger

Create a separate type for PoolDistr voting

Open
#6,045 0 comments 0 reactions 1 assignee Claimed by @neilmayhew View on GitHub
:credit_card: technical-debt DijkstraEra Leios
Dominant language
Haskell
Stars
295
Forks
179
Avg merge
4d 7h
Merged PRs (30d)
29

Description

1. Create Voting Stake Pool Distr
```haskell
data VotingStakePoolDistr = VotingStakePoolDistr
{ unPoolDistr :: !(Map (KeyHash StakePool) (CompactForm Coin))
, pdTotalStakePoolVotingAmount :: !(NonZero Coin)
}
```

1. remove `poolDistrDistrL` and `poolDistrTotalL` in favor of matching lenses for `VotingStakePoolDistr`

1. Use `VotingStakePoolDistr` in `DRepPulser`

1. Convert from PoolDistr to `VotingStakePoolDistr` on `setFreshDRepPulsingState`

1. Remove the haddock on PoolDistr
```
-- In addition to
-- the stake considered for the `individualPoolStake` Rational, we add
-- proposal-deposits to this field."
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.