marketplace: designate validator rewards

so that they can no longer be transfered
within the vault
This commit is contained in:
Mark Spanbroek 2025-02-27 09:39:13 +01:00
parent b6f5d65630
commit 17646f15b9

View File

@ -333,6 +333,7 @@ contract Marketplace is SlotReservations, Proofs, StateRetrieval, Endian {
AccountId hostAccount = _vault.hostAccount(slot.host, slot.slotIndex);
AccountId validatorAccount = _vault.validatorAccount(msg.sender);
_vault.transfer(fund, hostAccount, validatorAccount, validatorReward);
_vault.designate(fund, validatorAccount, validatorReward);
_vault.burnDesignated(fund, hostAccount, slashedAmount - validatorReward);
if (missingProofs(slotId) >= _config.collateral.maxNumberOfSlashes) {