mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-24 07:21:02 -04:00
Remove stale, ugly, type conversion
This commit is contained in:
parent
8f5a989ad1
commit
6be5d64c1c
2 changed files with 0 additions and 8 deletions
|
@ -70,10 +70,6 @@ pub async fn swap(
|
|||
None => unreachable!("should have amounts by here"),
|
||||
};
|
||||
|
||||
let xmr = monero::Amount::from_piconero(xmr.as_piconero());
|
||||
// TODO: This should be the Amount exported by xmr_btc.
|
||||
let btc = ::bitcoin::Amount::from_sat(btc.as_sat());
|
||||
|
||||
// TODO: Pass this in using <R: RngCore + CryptoRng>
|
||||
let rng = &mut OsRng;
|
||||
let state0 = State0::new(
|
||||
|
|
|
@ -69,10 +69,6 @@ where
|
|||
other => panic!("unexpected event: {:?}", other),
|
||||
};
|
||||
|
||||
// FIXME: Too many `bitcoin` crates/modules.
|
||||
let xmr = xmr_btc::monero::Amount::from_piconero(xmr.as_piconero());
|
||||
let btc = ::bitcoin::Amount::from_sat(btc.as_sat());
|
||||
|
||||
// TODO: Pass this in using <R: RngCore + CryptoRng>
|
||||
let rng = &mut OsRng;
|
||||
let state0 = State0::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue