mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-03 22:03:08 +00:00
marketplace: designate validator rewards
so that they can no longer be transfered within the vault
This commit is contained in:
parent
b6f5d65630
commit
17646f15b9
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user