@ -167,7 +167,8 @@ impl<O, M, W> Actor<O, M, W> {
self . order_feed_actor_inbox . send ( None ) ? ;
self . order_feed_actor_inbox . send ( None ) ? ;
self . send_to_maker
self . send_to_maker
. do_send ( wire ::TakerToMaker ::TakeOrder { order_id , quantity } ) ? ;
. send ( wire ::TakerToMaker ::TakeOrder { order_id , quantity } )
. await ? ;
Ok ( ( ) )
Ok ( ( ) )
}
}
@ -221,13 +222,14 @@ where
self . send_pending_update_proposals ( ) ? ;
self . send_pending_update_proposals ( ) ? ;
self . send_to_maker
self . send_to_maker
. do_ send( wire ::TakerToMaker ::ProposeSettlement {
. send ( wire ::TakerToMaker ::ProposeSettlement {
order_id : proposal . order_id ,
order_id : proposal . order_id ,
timestamp : proposal . timestamp ,
timestamp : proposal . timestamp ,
taker : proposal . taker ,
taker : proposal . taker ,
maker : proposal . maker ,
maker : proposal . maker ,
price : proposal . price ,
price : proposal . price ,
} ) ? ;
} )
. await ? ;
Ok ( ( ) )
Ok ( ( ) )
}
}
@ -381,10 +383,11 @@ where
self . send_pending_update_proposals ( ) ? ;
self . send_pending_update_proposals ( ) ? ;
self . send_to_maker
self . send_to_maker
. do_ send( wire ::TakerToMaker ::ProposeRollOver {
. send ( wire ::TakerToMaker ::ProposeRollOver {
order_id : proposal . order_id ,
order_id : proposal . order_id ,
timestamp : proposal . timestamp ,
timestamp : proposal . timestamp ,
} ) ? ;
} )
. await ? ;
Ok ( ( ) )
Ok ( ( ) )
}
}
}
}
@ -667,10 +670,11 @@ where
let ( tx , sig_taker ) = dlc . close_transaction ( proposal ) ? ;
let ( tx , sig_taker ) = dlc . close_transaction ( proposal ) ? ;
self . send_to_maker
self . send_to_maker
. do_ send( wire ::TakerToMaker ::InitiateSettlement {
. send ( wire ::TakerToMaker ::InitiateSettlement {
order_id ,
order_id ,
sig_taker ,
sig_taker ,
} ) ? ;
} )
. await ? ;
cfd . handle ( CfdStateChangeEvent ::ProposalSigned (
cfd . handle ( CfdStateChangeEvent ::ProposalSigned (
CollaborativeSettlement ::new (
CollaborativeSettlement ::new (