Skip to content

Commit

Permalink
Merge pull request #1146 from drift-labs/crispheaney/final-pull-oracl…
Browse files Browse the repository at this point in the history
…e-constant-updates

sdk: update oracle constants for usdc, usdt, jitosol, sol, btc, eth
  • Loading branch information
NourAlharithi committed Jul 17, 2024
2 parents 3d6c1e1 + 2eeeec0 commit 81c5296
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions sdk/src/constants/perpMarkets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
symbol: 'SOL-PERP',
baseAssetSymbol: 'SOL',
marketIndex: 0,
oracle: new PublicKey('H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG'),
oracle: new PublicKey('BAtFj4kQttZRVep3UZS2aZRDixkGYgWsbqTBVDbnSsPF'),
launchTs: 1667560505000,
oracleSource: OracleSource.PYTH,
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d',
},
Expand All @@ -348,9 +348,9 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
symbol: 'BTC-PERP',
baseAssetSymbol: 'BTC',
marketIndex: 1,
oracle: new PublicKey('GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU'),
oracle: new PublicKey('486kr3pmFPfTsS4aZgcsQ7kS4i9rjMsYYZup6HQNSTT4'),
launchTs: 1670347281000,
oracleSource: OracleSource.PYTH,
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43',
},
Expand All @@ -360,9 +360,9 @@ export const MainnetPerpMarkets: PerpMarketConfig[] = [
symbol: 'ETH-PERP',
baseAssetSymbol: 'ETH',
marketIndex: 2,
oracle: new PublicKey('JBu1AL4obBcCMqKBBxhpWCNUt136ijcuMZLFvTP7iWdB'),
oracle: new PublicKey('6bEp2MiyoiiiDxcVqE8rUHQWwHirXUXtKfAEATTVqNzT'),
launchTs: 1670347281000,
oracleSource: OracleSource.PYTH,
oracleSource: OracleSource.PYTH_PULL,
pythFeedId:
'0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
},
Expand Down
24 changes: 12 additions & 12 deletions sdk/src/constants/spotMarkets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
{
symbol: 'USDC',
marketIndex: 0,
oracle: new PublicKey('Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD'),
oracleSource: OracleSource.PYTH_STABLE_COIN,
oracle: new PublicKey('En8hkHLkRe9d9DraYmBTrus518BvmVH448YcvmrFM6Ce'),
oracleSource: OracleSource.PYTH_STABLE_COIN_PULL,
mint: new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'),
precision: QUOTE_PRECISION,
precisionExp: QUOTE_PRECISION_EXP,
Expand All @@ -84,8 +84,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
{
symbol: 'SOL',
marketIndex: 1,
oracle: new PublicKey('H6ARHf6YXhGYeQfUzQNGk6rDNnLBQKrenN712K4AQJEG'),
oracleSource: OracleSource.PYTH,
oracle: new PublicKey('BAtFj4kQttZRVep3UZS2aZRDixkGYgWsbqTBVDbnSsPF'),
oracleSource: OracleSource.PYTH_PULL,
mint: new PublicKey(WRAPPED_SOL_MINT),
precision: LAMPORTS_PRECISION,
precisionExp: LAMPORTS_EXP,
Expand All @@ -111,8 +111,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
{
symbol: 'wBTC',
marketIndex: 3,
oracle: new PublicKey('GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU'),
oracleSource: OracleSource.PYTH,
oracle: new PublicKey('486kr3pmFPfTsS4aZgcsQ7kS4i9rjMsYYZup6HQNSTT4'),
oracleSource: OracleSource.PYTH_PULL,
mint: new PublicKey('3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh'),
precision: new BN(10).pow(EIGHT),
precisionExp: EIGHT,
Expand All @@ -123,8 +123,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
{
symbol: 'wETH',
marketIndex: 4,
oracle: new PublicKey('JBu1AL4obBcCMqKBBxhpWCNUt136ijcuMZLFvTP7iWdB'),
oracleSource: OracleSource.PYTH,
oracle: new PublicKey('6bEp2MiyoiiiDxcVqE8rUHQWwHirXUXtKfAEATTVqNzT'),
oracleSource: OracleSource.PYTH_PULL,
mint: new PublicKey('7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs'),
precision: new BN(10).pow(EIGHT),
precisionExp: EIGHT,
Expand All @@ -138,8 +138,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
{
symbol: 'USDT',
marketIndex: 5,
oracle: new PublicKey('3vxLXJqLqF3JG5TCbYycbKWRBbCJQLxQmBGCkyqEEefL'),
oracleSource: OracleSource.PYTH,
oracle: new PublicKey('BekJ3P5G3iFeC97sXHuKnUHofCFj9Sbo7uyF2fkKwvit'),
oracleSource: OracleSource.PYTH_STABLE_COIN_PULL,
mint: new PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'),
precision: QUOTE_PRECISION,
precisionExp: QUOTE_PRECISION_EXP,
Expand All @@ -150,8 +150,8 @@ export const MainnetSpotMarkets: SpotMarketConfig[] = [
{
symbol: 'jitoSOL',
marketIndex: 6,
oracle: new PublicKey('7yyaeuJ1GGtVBLT2z2xub5ZWYKaNhF28mj1RdV4VDFVk'),
oracleSource: OracleSource.PYTH,
oracle: new PublicKey('9QE1P5EfzthYDgoQ9oPeTByCEKaRJeZbVVqKJfgU9iau'),
oracleSource: OracleSource.PYTH_PULL,
mint: new PublicKey('J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn'),
precision: new BN(10).pow(NINE),
precisionExp: NINE,
Expand Down

0 comments on commit 81c5296

Please sign in to comment.