@@ -629,10 +629,8 @@ struct UtxoSwapV2TestParams {
629629 premium : Option < f64 > ,
630630 taker_method : TakerMethod ,
631631 /// Expected locked amount on Bob’s side before maker payment is sent
632- /// E.g. "777.00001"
633632 expected_bob_locked_amount : & ' static str ,
634633 /// Expected locked amount on Alice’s side before taker funding is sent
635- /// E.g. "778.00779"
636634 expected_alice_locked_amount : & ' static str ,
637635}
638636
@@ -771,12 +769,12 @@ fn test_v2_swap_utxo_utxo_impl_common(params: UtxoSwapV2TestParams) {
771769fn test_v2_swap_utxo_utxo ( ) {
772770 test_v2_swap_utxo_utxo_impl_common ( UtxoSwapV2TestParams {
773771 maker_price : 1.0 ,
774- taker_price : 1.00001 ,
775- volume : 777.0 ,
776- premium : Some ( 0.007 ) ,
772+ taker_price : 1.001 ,
773+ volume : 777. ,
774+ premium : Some ( 0.777 ) ,
777775 taker_method : TakerMethod :: Buy ,
778776 expected_bob_locked_amount : "777.00001" ,
779- expected_alice_locked_amount : "778.00779 " ,
777+ expected_alice_locked_amount : "778.77801 " ,
780778 } ) ;
781779}
782780
@@ -786,12 +784,12 @@ fn test_v2_swap_utxo_utxo_burnkey_as_alice() {
786784 SET_BURN_PUBKEY_TO_ALICE . set ( true ) ;
787785 test_v2_swap_utxo_utxo_impl_common ( UtxoSwapV2TestParams {
788786 maker_price : 1.0 ,
789- taker_price : 1.00001 ,
787+ taker_price : 1.001 ,
790788 volume : 777.0 ,
791- premium : Some ( 0.007 ) ,
789+ premium : Some ( 0.777 ) ,
792790 taker_method : TakerMethod :: Buy ,
793791 expected_bob_locked_amount : "777.00001" ,
794- expected_alice_locked_amount : "777.00778 " , // no dex fee if dex pubkey is alice
792+ expected_alice_locked_amount : "777.77701 " , // no dex fee if dex pubkey is alice
795793 } ) ;
796794}
797795
0 commit comments