Compare commits
1 Commits
4ad07f7fe1
...
bcd377a03d
Author | SHA1 | Date | |
---|---|---|---|
bcd377a03d |
@ -291,7 +291,11 @@ impl BrainData {
|
|||||||
}
|
}
|
||||||
log::debug!("Removing {nanolp_to_collect} nanoLP from {}", c.uuid);
|
log::debug!("Removing {nanolp_to_collect} nanoLP from {}", c.uuid);
|
||||||
c.locked_nano -= nanolp_to_collect;
|
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 {
|
if c.locked_nano == 0 {
|
||||||
deleted_contracts.push((c.uuid.clone(), c.node_pubkey.clone()));
|
deleted_contracts.push((c.uuid.clone(), c.node_pubkey.clone()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user