Skip to content

Commit

Permalink
Add more info in slack message (#475)
Browse files Browse the repository at this point in the history
This PR adds a bit more info in the final logging messages.

~~PR #474 needs to be merged first, so marking as draft for now~~

This PR addresses issue #472
  • Loading branch information
harisang authored Jan 10, 2025
1 parent 9dd446f commit 5959eaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/fetch/payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ def construct_payouts(
f"Network Fees: {total_network_fees / 10**18:.4f}\n"
f"Slippage: {total_slippage / 10**18:.4f}\n\n"
f"Exchange rate native token to COW: {exchange_rate_native_to_cow:.6g} COW/native token\n"
f"Exchange rate native token to ETH: {exchange_rate_native_to_eth:.6g} ETH/native token\n",
f"Exchange rate native token to ETH: {exchange_rate_native_to_eth:.6g} ETH/native token\n"
f"Minimum native token transfer: {config.payment_config.min_native_token_transfer / 10**18} units\n" # pylint: disable=line-too-long
f"Minimum COW transfer: {config.payment_config.min_cow_transfer / 10**18} units\n",
category=Category.TOTALS,
)
payouts = prepare_transfers(
Expand Down
7 changes: 4 additions & 3 deletions src/fetch/transfer_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ def auto_propose(
slack_client,
channel=slack_channel,
message=(
f"Solver Rewards transaction with nonce {nonce} pending signatures.\n"
f"To sign and execute, visit:\n{config.payment_config.safe_queue_url}\n"
f"More details in thread"
f"""Solver Rewards transaction for network {config.dune_config.dune_blockchain}
with nonce {nonce} pending signatures.
To sign and execute, visit:\n{config.payment_config.safe_queue_url}
More details in thread"""
),
sub_messages=log_saver_obj.get_values(),
)
Expand Down

0 comments on commit 5959eaf

Please sign in to comment.