Skip to content

Commit

Permalink
Merge pull request #4 from warioishere/patch-1
Browse files Browse the repository at this point in the history
Update business_logic.rs to show balance in "Sats" and not only as a number
  • Loading branch information
AE9999 authored Oct 13, 2024
2 parents f00cc02 + e95a573 commit c16ccb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrix_bot/business_logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl BusinessLogicContext {
let balance = if balance.is_none() { 0 }
else { balance.unwrap() / 1000 }; // Minisatashis are a bitch.

Ok(CommandReply::text_only(format!("Your balance is {:?}", balance).as_str()))
Ok(CommandReply::text_only(format!("Your balance is {} Sats", balance).as_str()))
}

async fn do_process_pay(&self, sender: &str, bol11_invoice: &str) -> Result<CommandReply, SimpleError> {
Expand Down

0 comments on commit c16ccb8

Please sign in to comment.