Skip to content

Commit

Permalink
remove min transfer runtime args
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Jan 7, 2025
1 parent 0dce228 commit 94edc9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
5 changes: 1 addition & 4 deletions src/fetch/transfer_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,9 @@ def auto_propose(
def main() -> None:
"""Generate transfers for an accounting period"""

args = generic_script_init(description="Fetch Complete Reimbursement")
config = AccountingConfig.from_network(Network(os.environ["NETWORK"]))

args = generic_script_init(
description="Fetch Complete Reimbursement", config=config
)

accounting_period = AccountingPeriod(args.start)

orderbook = MultiInstanceDBFetcher(
Expand Down
17 changes: 1 addition & 16 deletions src/utils/script_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse
from datetime import date, timedelta
from dataclasses import dataclass
from src.config import AccountingConfig


@dataclass
Expand All @@ -18,7 +17,7 @@ class ScriptArgs:
ignore_slippage: bool


def generic_script_init(description: str, config: AccountingConfig) -> ScriptArgs:
def generic_script_init(description: str) -> ScriptArgs:
"""
1. parses parses command line arguments,
2. establishes dune connection
Expand All @@ -44,18 +43,6 @@ def generic_script_init(description: str, config: AccountingConfig) -> ScriptArg
"Only relevant in combination with --post-tx"
"Primarily intended for deployment in staging environment.",
)
parser.add_argument(
"--min-transfer-amount-wei",
type=int,
help="Ignore ETH transfers with amount less than this",
default=config.payment_config.min_native_token_transfer,
)
parser.add_argument(
"--min-transfer-amount-cow-atoms",
type=int,
help="Ignore COW transfers with amount less than this",
default=config.payment_config.min_cow_transfer,
)
parser.add_argument(
"--ignore-slippage",
action="store_true",
Expand All @@ -66,7 +53,5 @@ def generic_script_init(description: str, config: AccountingConfig) -> ScriptArg
start=args.start,
post_tx=args.post_tx,
dry_run=args.dry_run,
min_transfer_amount_wei=args.min_transfer_amount_wei,
min_transfer_amount_cow_atoms=args.min_transfer_amount_cow_atoms,
ignore_slippage=args.ignore_slippage,
)

0 comments on commit 94edc9c

Please sign in to comment.