From 6403ba587cfb375c6b848d7fdce64c0121762cb5 Mon Sep 17 00:00:00 2001 From: 0xbigz <83473873+0xbigz@users.noreply.github.com> Date: Thu, 11 Apr 2024 17:40:01 -0400 Subject: [PATCH] sdk: update market-constants --- src/driftpy/constants/perp_markets.py | 7 +++++++ src/driftpy/constants/spot_markets.py | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/driftpy/constants/perp_markets.py b/src/driftpy/constants/perp_markets.py index c5f19f51..16bb5f57 100644 --- a/src/driftpy/constants/perp_markets.py +++ b/src/driftpy/constants/perp_markets.py @@ -296,4 +296,11 @@ class PerpMarketConfig: oracle=Pubkey.from_string("sDAQaZQJQ4RXAxH3x526mbEXyQZT15ktkL84d7hmk7M"), oracle_source=OracleSource.Prelaunch(), ), + PerpMarketConfig( + symbol="TNSR-PERP", + base_asset_symbol="TNSR", + market_index=29, + oracle=Pubkey.from_string("7Cfyymx49ipGsgEsCA2XygAB2DUsan4C6Cyb5c8oR5st"), + oracle_source=OracleSource.Switchboard(), + ), ] diff --git a/src/driftpy/constants/spot_markets.py b/src/driftpy/constants/spot_markets.py index d31bb361..eff30148 100644 --- a/src/driftpy/constants/spot_markets.py +++ b/src/driftpy/constants/spot_markets.py @@ -135,4 +135,11 @@ class SpotMarketConfig: oracle_source=OracleSource.Pyth(), mint=Pubkey.from_string("85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ"), ), + SpotMarketConfig( + symbol="TNSR", + market_index=14, + oracle=Pubkey.from_string("7Cfyymx49ipGsgEsCA2XygAB2DUsan4C6Cyb5c8oR5st"), + oracle_source=OracleSource.Pyth(), + mint=Pubkey.from_string("TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6"), + ), ]