pub async fn listen_for_replace_requests(
    parachain_rpc: InterBtcParachain,
    btc_rpc: VaultIdManager,
    event_channel: Sender<Event>,
    accept_replace_requests: bool
) -> Result<(), Error>
Expand description

Listen for RequestReplaceEvent, and attempt to accept it

Arguments

  • parachain_rpc - the parachain RPC handle
  • event_channel - the channel over which to signal events
  • accept_replace_requests - if true, we attempt to accept replace requests