Skip to content

Commit

Permalink
most of prediction markets
Browse files Browse the repository at this point in the history
  • Loading branch information
soundsonacid committed Jul 30, 2024
1 parent 790c219 commit a847451
Show file tree
Hide file tree
Showing 5 changed files with 418 additions and 115 deletions.
2 changes: 2 additions & 0 deletions src/driftpy/constants/numeric_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,5 @@
GOV_SPOT_MARKET_INDEX = 15

SWB_PRECISION = 10**12

MAX_PREDICTION_PRICE = PRICE_PRECISION
14 changes: 14 additions & 0 deletions src/driftpy/constants/perp_markets.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,20 @@ class PerpMarketConfig:
oracle=Pubkey.from_string("F47c7aJgYkfKXQ9gzrJaEpsNwUKHprysregTWXrtYLFp"),
oracle_source=OracleSource.Pyth1KPull(),
),
PerpMarketConfig(
symbol="TRUMP-WIN-2024-PREDICT",
base_asset_symbol="TRUMP-WIN-2024",
market_index=26,
oracle=Pubkey.from_string("3TVuLmEGBRfVgrmFRtYTheczXaaoRBwcHw1yibZHSeNA"),
oracle_source=OracleSource.Prelaunch(),
),
PerpMarketConfig(
symbol="KAMALA-POPULAR-VOTE-2024-PREDICT",
base_asset_symbol="KAMALA-POPULAR-VOTE",
market_index=27,
oracle=Pubkey.from_string("GU6CA7a2KCyhpfqZNb36UAfc9uzKBM8jHjGdt245QhYX"),
oracle_source=OracleSource.Prelaunch(),
),
]

mainnet_perp_market_configs: list[PerpMarketConfig] = [
Expand Down
Loading

0 comments on commit a847451

Please sign in to comment.