Skip to content

Commit

Permalink
Merge pull request #1 from kobadmitrii/issue-314
Browse files Browse the repository at this point in the history
[cowprotocol#314]  tuple of tokens instead of ETH only
  • Loading branch information
kobadmitrii authored Jul 11, 2023
2 parents 07084fd + 0f3641b commit 544f243
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/utils/script_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ def generic_script_init(description: str) -> ScriptArgs:
"Primarily intended for deployment in staging environment.",
default=False,
)
# TODO: this should be per token (like list[tuple[Token,minAmount]])
# Define the per-token minimum transfer thresholds
parser.add_argument(
"--min-transfer-amount-wei",
type=int,
help="Ignore transfers with amount less than this",
default=1000000000000000,
type=lambda x: tuple(x.split(',')),
nargs='+',
help="Minimum transfer amount per token (format: Token, MinAmount)",
default=[("ETH", 1000000000000000)], # Default minimum transfer amount for ETH
)
args = parser.parse_args()
return ScriptArgs(
Expand Down

0 comments on commit 544f243

Please sign in to comment.