Alpha: remove emptied frozen balances

This commit is contained in:
Benjamin Canou 2018-03-15 14:06:00 +01:00
parent 39f919e07b
commit b09183a2d7

View File

@ -219,6 +219,9 @@ let unfreeze ctxt delegate cycle =
Lwt.return Tez_repr.(balance +? rewards) >>=? fun balance ->
Storage.Contract.Balance.set ctxt contract balance >>=? fun ctxt ->
Roll_storage.Delegate.add_amount ctxt delegate rewards >>=? fun ctxt ->
Storage.Contract.Frozen_bonds.remove (ctxt, contract) cycle >>= fun ctxt ->
Storage.Contract.Frozen_fees.remove (ctxt, contract) cycle >>= fun ctxt ->
Storage.Contract.Frozen_rewards.remove (ctxt, contract) cycle >>= fun ctxt ->
return ctxt
let cycle_end ctxt last_cycle unrevealed =