Skip to content

Commit e6a9d7e

Browse files
committed
balances map usage from primitives
1 parent 99f0bad commit e6a9d7e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

validator_worker/src/core/fees.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
use std::collections::BTreeMap;
2-
31
use num::rational::Ratio;
4-
use primitives::{BigNum, Channel, DomainError, ValidatorDesc};
5-
6-
pub type BalancesMap = BTreeMap<String, BigNum>;
2+
use primitives::{BalancesMap, BigNum, Channel, DomainError, ValidatorDesc};
73

84
pub fn get_balances_after_fees_tree(
95
balances: &BalancesMap,
106
channel: &Channel,
117
) -> Result<BalancesMap, DomainError> {
128
let distribution = Distribution::new(balances, &channel)?;
139

14-
let mut balances_after_fees = BTreeMap::default();
10+
let mut balances_after_fees = BalancesMap::default();
1511
let mut total = BigNum::from(0);
1612

1713
for (key, value) in balances.iter() {

0 commit comments

Comments
 (0)