File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Ledger/Conway/Specification Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ credential) to the deposit.
454454 → VDeleg ⇀ Coin
455455 calculateVDelegDelegatedStake currentEpoch utxoSt govSt gState dState
456456 = aggregate₊ (((activeVoteDelegs ˢ) ⁻¹ʳ
457- ∘ʳ (stakePerCredential ∪⁺ stakeFromGADeposits govSt utxoSt) ˢ) ᶠˢ)
457+ ∘ʳ (stakePerCredential ∪⁺ stakeFromRewards ∪⁺ stakeFromGADeposits govSt utxoSt) ˢ) ᶠˢ)
458458 where
459459 open UTxOState utxoSt
460460 open DState dState
@@ -474,6 +474,9 @@ credential) to the deposit.
474474 stakePerCredential = mapFromFun (λ c → cbalance (utxo ∣^' λ txout → getStakeCred txout ≡ just c))
475475 (dom activeVoteDelegs)
476476
477+ -- stake from rewards
478+ stakeFromRewards : Stake
479+ stakeFromRewards = rewards ∣ (dom activeVoteDelegs)
477480```
478481
479482``` agda
You can’t perform that action at this time.
0 commit comments