mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 17:44:02 -05:00
ABS only sends quote response if sufficient XMR balance
This commit is contained in:
parent
fffa679f42
commit
cad6a1c3a7
3 changed files with 28 additions and 4 deletions
|
|
@ -206,12 +206,18 @@ pub trait WatchForTransfer {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, thiserror::Error)]
|
||||
#[error("transaction does not pay enough: expected {expected:?}, got {actual:?}")]
|
||||
#[error("transaction does not pay enough: expected {expected}, got {actual}")]
|
||||
pub struct InsufficientFunds {
|
||||
pub expected: Amount,
|
||||
pub actual: Amount,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, thiserror::Error)]
|
||||
#[error("The balance is too low, current balance: {balance}")]
|
||||
pub struct BalanceTooLow {
|
||||
pub balance: Amount,
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
pub trait CreateWalletForOutput {
|
||||
async fn create_and_load_wallet_for_output(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue