Skip to content

Commit

Permalink
fix referrer info (#28)
Browse files Browse the repository at this point in the history
* fix: referrer info
  • Loading branch information
soundsonacid authored Jan 23, 2024
1 parent a719bb2 commit cf18cda
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions python/sdk/jit_proxy/jitter/base_jitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from driftpy.types import is_variant, UserAccount, Order, UserStatsAccount, ReferrerInfo
from driftpy.drift_client import DriftClient
from driftpy.auction_subscriber.auction_subscriber import AuctionSubscriber
from driftpy.addresses import get_user_stats_account_public_key
from driftpy.addresses import get_user_stats_account_public_key, get_user_account_public_key
from driftpy.math.orders import has_auction_price
from driftpy.math.conversion import convert_to_number

Expand Down Expand Up @@ -204,8 +204,12 @@ def get_referrer_info(
return None
else:
return ReferrerInfo(
taker_stats.referrer,
get_user_account_public_key(
self.drift_client.program_id, # type: ignore
taker_stats.referrer,
0
),
get_user_stats_account_public_key(
self.drift_client.program_id, taker_stats.referrer
self.drift_client.program_id, taker_stats.referrer # type: ignore
),
)

0 comments on commit cf18cda

Please sign in to comment.