mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-23 07:35:03 +01:00
fix: misspelling typo
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user