mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-28 17:09:37 -05:00
52f648e1de
Move Alice's spot price logic into a dedicated network behaviour that handles all the logic. The new behaviour encapsulates the complete state necessary for spot price request decision making. The network behaviour cannot handle asynchronous calls, thus the balance is managed inside the spot price and has to updated regularly from the outside to ensure the spot price balance check has up to date data. At the moment the balance is updated upon an incoming quote requests. Code that is relevant for both ASB and CLI remains in the `network::spot_price` module (e.g. `network::spot_price::Error`). |
||
---|---|---|
.. | ||
harness | ||
alice_punishes_after_restart_punish_timelock_expired.rs | ||
alice_refunds_after_restart_bob_refunded.rs | ||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force.rs | ||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired.rs | ||
bob_refunds_using_cancel_and_refund_command.rs | ||
concurrent_bobs_after_xmr_lock_proof_sent.rs | ||
concurrent_bobs_before_xmr_lock_proof_sent.rs | ||
ensure_same_swap_id.rs | ||
happy_path_restart_alice_after_xmr_locked.rs | ||
happy_path_restart_bob_after_xmr_locked.rs | ||
happy_path_restart_bob_before_xmr_locked.rs | ||
happy_path.rs | ||
punish.rs |