fix(asb): use unlocked monero balance for quotes

This commit is contained in:
Byron Hambly 2022-11-07 09:52:34 +02:00
parent c8f3fcebe7
commit f224c49584
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
11 changed files with 106 additions and 39 deletions

View file

@ -867,7 +867,9 @@ impl Wallet for monero::Wallet {
}
async fn get_balance(&self) -> Result<Self::Amount> {
self.get_balance().await
let total = self.get_balance().await?;
let balance = Self::Amount::from_piconero(total.balance);
Ok(balance)
}
}