Compare commits

..

1 Commits

Author SHA1 Message Date
4ad07f7fe1
add support for operators 2025-02-15 04:21:36 +02:00

@ -291,11 +291,7 @@ impl BrainData {
}
log::debug!("Removing {nanolp_to_collect} nanoLP from {}", c.uuid);
c.locked_nano -= 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);
self.add_nano_to_wallet(&operator_wallet, nanolp_to_collect);
if c.locked_nano == 0 {
deleted_contracts.push((c.uuid.clone(), c.node_pubkey.clone()));
}