Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Oct 25, 2023
1 parent cc4d803 commit 129ce06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/fetch/payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ def extend_payment_df(pdf: DataFrame, converter: TokenConversion) -> DataFrame:
"""
# Note that this can be negative!
pdf["reward_eth"] = pdf["payment_eth"] - pdf["execution_cost_eth"]
# num = pdf._get_numeric_data()
# num[num < 0] = 0
pdf["reward_cow"] = pdf["reward_eth"].apply(converter.eth_to_token)

secondary_allocation = max(PERIOD_BUDGET_COW - pdf["reward_cow"].sum(), 0)
Expand Down
3 changes: 1 addition & 2 deletions src/utils/script_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ 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]])
parser.add_argument(
"--min-transfer-amount-wei",
type=int,
Expand All @@ -68,7 +67,7 @@ def generic_script_init(description: str) -> ScriptArgs:
"--min-transfer-amount-cow-atoms",
type=int,
help="Ignore COW transfers with amount less than this",
default=10,
default=100000000000000000000,
)
args = parser.parse_args()
return ScriptArgs(
Expand Down

0 comments on commit 129ce06

Please sign in to comment.