Skip to content

Commit 4188f7f

Browse files
committed
Update spot constants
1 parent cb16fed commit 4188f7f

2 files changed

Lines changed: 63 additions & 0 deletions

File tree

scripts/generate_constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ async def generate_spot_configs(drift_client: DriftClient, env: str) -> str:
3131
oracle=market.oracle,
3232
oracle_source=market.oracle_source,
3333
mint=market.mint,
34+
decimals=market.decimals,
3435
)
3536
configs.append(config)
3637

@@ -45,6 +46,7 @@ async def generate_spot_configs(drift_client: DriftClient, env: str) -> str:
4546
oracle=Pubkey.from_string("{str(config.oracle)}"),
4647
oracle_source=OracleSource.{config.oracle_source.__class__.__name__}(), # type: ignore
4748
mint=Pubkey.from_string("{str(config.mint)}"),
49+
decimals={config.decimals},
4850
),"""
4951

5052
output += "\n]\n"

0 commit comments

Comments
 (0)