Skip to content

Commit

Permalink
drift_client.py: fix get_oracle_price_data_and_slot typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbigz committed Dec 2, 2023
1 parent c718ec4 commit 123fb5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/driftpy/drift_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_spot_market_account(self, market_index: int) -> Optional[SpotMarketAccou
return getattr(spot_market_and_slot, "data", None)

def get_oracle_price_data(self, oracle: Pubkey) -> Optional[OraclePriceData]:
oracle_price_data_and_slot = self.account_subscriber.get_oracle_data_and_slot(
oracle_price_data_and_slot = self.account_subscriber.get_oracle_price_data_and_slot(
oracle
)
return getattr(oracle_price_data_and_slot, "data", None)
Expand Down
3 changes: 2 additions & 1 deletion src/driftpy/math/positions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from driftpy.math.spot_market import *
from driftpy.types import OraclePriceData

from driftpy.constants.numeric_constants import *
from driftpy.math.amm import calculate_amm_reserves_after_swap, get_swap_direction

def get_worst_case_token_amounts(
position: SpotPosition,
Expand Down

0 comments on commit 123fb5f

Please sign in to comment.