We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b989b19 commit f66119eCopy full SHA for f66119e
src/Ledger/Conway/Specification/Certs.lagda.md
@@ -487,16 +487,19 @@ isPoolRegistered ps kh = lookupᵐ? ps kh
487
data _⊢_⇀⦇_,POOL⦈_ : PoolEnv → PState → DCert → PState → Type where
488
489
POOL-regpool :
490
+ let
491
+ fPool' =
492
+ if isPoolRegistered pools kh
493
+ then ❴ kh , poolParams ❵ ∪ˡ fPools
494
+ else fPools
495
+ in
496
────────────────────────────────
497
pp ⊢ ⟦ pools
498
, fPools
499
, retiring
500
⟧ ⇀⦇ regpool kh poolParams ,POOL⦈ ⟦
501
pools ∪ˡ ❴ kh , poolParams ❵
- , (if isPoolRegistered pools kh
- then ❴ kh , poolParams ❵ ∪ˡ fPools
- else fPools
- )
502
+ , fPool'
503
, retiring ∣ ❴ kh ❵ ᶜ
504
⟧
505
0 commit comments