Skip to content
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

Fix create_market script and use sdai as default #508

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions scripts/create_market_omen.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main(
initial_funds: str = typer.Option(),
from_private_key: str = typer.Option(),
safe_address: str = typer.Option(None),
cl_token: CollateralTokenChoice = CollateralTokenChoice.wxdai,
cl_token: CollateralTokenChoice = CollateralTokenChoice.sdai,
fee_perc: float = typer.Option(OMEN_DEFAULT_MARKET_FEE_PERC),
language: str = typer.Option("en"),
outcomes: list[str] = typer.Option(OMEN_BINARY_MARKET_OUTCOMES),
Expand All @@ -42,8 +42,6 @@ def main(
--initial-funds 0.01 \
--from-private-key your-private-key
```

Market can be created also on the web: https://aiomen.eth.limo/#/create
"""
safe_address_checksum = (
Web3.to_checksum_address(safe_address) if safe_address else None
Expand All @@ -52,7 +50,7 @@ def main(
BET_FROM_PRIVATE_KEY=private_key_type(from_private_key),
SAFE_ADDRESS=safe_address_checksum,
)
market_address = omen_create_market_tx(
market = omen_create_market_tx(
api_keys=api_keys,
collateral_token_address=COLLATERAL_TOKEN_CHOICE_TO_ADDRESS[cl_token],
initial_funds=xdai_type(initial_funds),
Expand All @@ -64,7 +62,7 @@ def main(
outcomes=outcomes,
auto_deposit=auto_deposit,
)
logger.info(f"Market created at address: {market_address}")
logger.info(f"Market created: {market}")


if __name__ == "__main__":
Expand Down
Loading