fix: misspelling typo

This commit is contained in:
vnprc
2024-08-01 22:28:33 -04:00
parent 72bef1b852
commit a30a5e2378
3 changed files with 9 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ pub struct SendSubCommand {
/// Should the send be offline only
#[arg(short, long)]
offline: bool,
/// Include fee to redeam in token
/// Include fee to redeem in token
#[arg(short, long)]
include_fee: bool,
/// Amount willing to overpay to avoid a swap

View File

@@ -1180,12 +1180,12 @@ impl Mint {
Ok(total_issued)
}
/// Total redeamed for keyset
/// Total redeemed for keyset
#[instrument(skip_all)]
pub async fn total_redeamed(&self) -> Result<HashMap<Id, Amount>, Error> {
pub async fn total_redeemed(&self) -> Result<HashMap<Id, Amount>, Error> {
let keysets = self.localstore.get_keyset_infos().await?;
let mut total_redeamed = HashMap::new();
let mut total_redeemed = HashMap::new();
for keyset in keysets {
let (proofs, state) = self.localstore.get_proofs_by_keyset_id(&keyset.id).await?;
@@ -1199,10 +1199,10 @@ impl Mint {
})
.sum();
total_redeamed.insert(keyset.id, total_spent);
total_redeemed.insert(keyset.id, total_spent);
}
Ok(total_redeamed)
Ok(total_redeemed)
}
}

View File

@@ -711,13 +711,13 @@ impl Wallet {
.unwrap()
.len();
let fee_to_redeam = self
let fee_to_redeem = self
.get_keyset_count_fee(&active_keyset_id, split_count as u64)
.await?;
(
amount.map(|a| a + fee_to_redeam),
change_amount - fee_to_redeam,
amount.map(|a| a + fee_to_redeem),
change_amount - fee_to_redeem,
)
}
false => (amount, change_amount),