Remove stale, ugly, type conversion

This commit is contained in:
Tobin C. Harding 2020-10-27 10:05:52 +11:00
parent 8f5a989ad1
commit 6be5d64c1c
2 changed files with 0 additions and 8 deletions

View File

@ -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(

View File

@ -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(