Compare commits

..

1 Commits

Author SHA1 Message Date
bcd377a03d
add support for operators 2025-02-15 04:25:33 +02:00

@ -291,7 +291,11 @@ impl BrainData {
}
log::debug!("Removing {nanolp_to_collect} nanoLP from {}", c.uuid);
c.locked_nano -= nanolp_to_collect;
self.add_nano_to_wallet(&operator_wallet, nanolp_to_collect);
let escrow_multiplier = match self.operators.get(&operator_wallet) {
Some(op) if op.escrow > 5000 => 5,
_ => 1,
};
self.add_nano_to_wallet(&operator_wallet, nanolp_to_collect * escrow_multiplier);
if c.locked_nano == 0 {
deleted_contracts.push((c.uuid.clone(), c.node_pubkey.clone()));
}