Skip to content

Commit 1523dbc

Browse files
committed
fix: Adjust default values.
1 parent b2b9ab6 commit 1523dbc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/catalyst-toolbox/catalyst-toolbox/scripts/python/proposers_rewards.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ class Author(pydantic.BaseModel):
7272
email: str
7373
user_name: str = pydantic.Field(alias="userName")
7474

75+
# CatGateway models
76+
77+
class CatalystDocumentProposal(pydantic.BaseModel):
78+
79+
7580
# Ideascale models
7681

7782
class IdeascaleProposal(pydantic.BaseModel):
@@ -700,7 +705,7 @@ def calculate_rewards(
700705
output_file: str = typer.Option(...),
701706
block0_path: str = typer.Option(...),
702707
gamma: str = typer.Option(
703-
1,
708+
"1",
704709
help="""
705710
The gamma value applied for the calculation of the total stake threshold. It is applied to every single voting value before the sum is executed.
706711
"""
@@ -713,7 +718,7 @@ def calculate_rewards(
713718
"""
714719
),
715720
relative_threshold: float = typer.Option(
716-
0,
721+
-1,
717722
help="This value indicates the relative threshold between Yes/No votes needed by projects to be eligible for funding."
718723
),
719724
output_format: OutputFormat = typer.Option("csv", help="Output format"),

0 commit comments

Comments
 (0)