Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cli/src/instructions/seed_liquidity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,12 @@ pub fn generate_redistribute_amount_to_position_based_on_ratio(
pub fn read_dust_deposit_state(path: &str) -> Result<DustDepositState> {
let file = File::open(path);
match file {
std::io::Result::Ok(file) => {
Ok(file) => {
let reader = BufReader::new(file);
let dust_deposit_state = serde_json::from_reader(reader)?;
Ok(dust_deposit_state)
}
std::io::Result::Err(_) => Ok(DustDepositState::default()),
Err(_) => Ok(DustDepositState::default()),
}
}

Expand Down Expand Up @@ -883,7 +883,7 @@ pub fn generate_amount_for_bins(

assert_eq!(
total_amount, amount,
"Amount distributed to bins not equals to funding amount"
"Amount distributed to bins does not equals to funding amount"
);

bin_amounts
Expand Down