Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 10, 2024
1 parent 286ef66 commit 34d9c75
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/bin/sys-lend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
assert!(matches!(cmd, Command::Deposit | Command::Rebalance));
None
}
ui_amount => {
Some(token.amount(ui_amount.parse::<f64>().unwrap()))
}
ui_amount => Some(token.amount(ui_amount.parse::<f64>().unwrap())),
};

let supply_balance = pools
Expand Down Expand Up @@ -979,7 +977,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
return Ok(());
}
(requested_amount, requested_amount)
},
}
};

(
Expand All @@ -1001,9 +999,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}

let (minimum_op_amount, maximum_op_amount) = match requested_amount {
None => {
(minimum_amount, withdraw_pool_supply_balance)
},
None => (minimum_amount, withdraw_pool_supply_balance),
Some(u64::MAX) => {
(withdraw_pool_supply_balance, withdraw_pool_supply_balance)
}
Expand All @@ -1017,7 +1013,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
return Ok(());
}
(requested_amount, requested_amount)
},
}
};

(
Expand Down

0 comments on commit 34d9c75

Please sign in to comment.