Skip to content

Commit

Permalink
frank/0.7.36 (#136)
Browse files Browse the repository at this point in the history
* 0.7.36

* asd
  • Loading branch information
soundsonacid authored Mar 8, 2024
1 parent be9a91d commit e2272e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/driftpy/accounts/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
with file.open() as f:
raw = file.read_text()
DRIFT_IDL = Idl.from_json(raw)
DRIFT_CODER = CODER(DRIFT_IDL)
DRIFT_CODER = Coder(DRIFT_IDL)


def convert_pyth_price(price, scale=1):
Expand Down Expand Up @@ -143,7 +143,7 @@ def decode_swb_price_info(data: bytes):


def decode_prelaunch_price_info(data: bytes):
prelaunch_oracle = DRIFT_CODER.coder.accounts.decode(data)
prelaunch_oracle = DRIFT_CODER.accounts.decode(data)

return OraclePriceData(
price=prelaunch_oracle.price,
Expand Down
1 change: 0 additions & 1 deletion tests/prelaunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
)
from driftpy.types import *
from driftpy.setup.helpers import initialize_sol_spot_market
from .math.helpers import looper

workspace = workspace_fixture("protocol-v2", build_cmd="anchor build", scope="session")

Expand Down

0 comments on commit e2272e9

Please sign in to comment.