Skip to content

Commit

Permalink
rename setup_maker_watcher_reward to setup_watcher_reward
Browse files Browse the repository at this point in the history
  • Loading branch information
shamardy committed Jan 9, 2025
1 parent 557ebe2 commit 6568a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm2src/mm2_main/src/lp_swap/maker_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ impl MakerSwap {
/// The reward configuration depends on the specific requirements of the coins
/// involved in the swap.
/// Some coins may not support watcher rewards at all.
async fn setup_maker_watcher_reward(&self, wait_maker_payment_until: u64) -> Result<Option<WatcherReward>, String> {
async fn setup_watcher_reward(&self, wait_maker_payment_until: u64) -> Result<Option<WatcherReward>, String> {
if !self.r().watcher_reward {
return Ok(None);
}
Expand Down Expand Up @@ -860,7 +860,7 @@ impl MakerSwap {
}

// Set up watcher reward if enabled
let watcher_reward = match self.setup_maker_watcher_reward(wait_maker_payment_until).await {
let watcher_reward = match self.setup_watcher_reward(wait_maker_payment_until).await {
Ok(reward) => reward,
Err(err) => {
return Ok((Some(MakerSwapCommand::Finish), vec![
Expand Down

0 comments on commit 6568a6b

Please sign in to comment.