diff --git a/src/fetch/payouts.py b/src/fetch/payouts.py index 6b08d4ec..74816655 100644 --- a/src/fetch/payouts.py +++ b/src/fetch/payouts.py @@ -601,6 +601,8 @@ def construct_payouts( 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"Minimum native token transfer: {config.payment_config.min_native_token_transfer / 10**18} units\n", + f"Minimum COW transfer: {config.payment_config.min_cow_transfer / 10**18} units\n", category=Category.TOTALS, ) payouts = prepare_transfers( diff --git a/src/fetch/transfer_file.py b/src/fetch/transfer_file.py index 1f22e978..61b87e60 100644 --- a/src/fetch/transfer_file.py +++ b/src/fetch/transfer_file.py @@ -58,6 +58,7 @@ def auto_propose( slack_client: WebClient, dry_run: bool, config: AccountingConfig, + network: Network, ) -> None: """ Entry point auto creation of rewards payout transaction. @@ -102,7 +103,7 @@ def auto_propose( slack_client, channel=slack_channel, message=( - f"Solver Rewards transaction with nonce {nonce} pending signatures.\n" + f"Solver Rewards transaction for network {network} 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" ), @@ -114,10 +115,10 @@ def main() -> None: """Generate transfers for an accounting period""" args = generic_script_init(description="Fetch Complete Reimbursement") + network = Network(os.environ["NETWORK"]) + config = AccountingConfig.from_network(network) - config = AccountingConfig.from_network(Network(os.environ["NETWORK"])) - - accounting_period = AccountingPeriod(args.start) + accounting_period = AccountingPeriod(args.start, network) orderbook = MultiInstanceDBFetcher( [config.orderbook_config.prod_db_url, config.orderbook_config.barn_db_url] @@ -134,7 +135,7 @@ def main() -> None: ) log_saver.print( - f"The data aggregated can be visualized at\n{accounting_period.dashboard_url()}", + f"The data aggregated can be visualized at\n{accounting_period.dashboard_url()}\n", category=Category.GENERAL, ) @@ -168,6 +169,7 @@ def main() -> None: slack_client=slack_client, dry_run=args.dry_run, config=config, + network=network, ) else: manual_propose(transfers=payout_transfers, period=dune.period, config=config)