-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default min transfer amounts per network #474
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,10 +113,12 @@ 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 | ||
) | ||
|
||
Comment on lines
-116
to
+121
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the dependency should be the other way around: the config should be set up with a dependency on command line arguments. The code would then only use the config. A similar approach could be used for all other command line arguments. For the change to minimal amounts in this PR, it would also be viable to remove the option to set them via the command line. (Or first ignore the command line option and later remove it, to not break how the script is currently being called.) |
||
accounting_period = AccountingPeriod(args.start) | ||
|
||
orderbook = MultiInstanceDBFetcher( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer
10**15
or1_000_000_000_000_000
over the bare integer notation, here and below.