From c0acc89c104266f9cea098cb1468be5009c71383 Mon Sep 17 00:00:00 2001 From: wphan Date: Thu, 2 Oct 2025 11:51:27 -0700 Subject: [PATCH] update settle pnl take rev share map --- sdk/src/driftClient.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sdk/src/driftClient.ts b/sdk/src/driftClient.ts index 3104fdbbe6..eec1e1d58d 100644 --- a/sdk/src/driftClient.ts +++ b/sdk/src/driftClient.ts @@ -7827,7 +7827,8 @@ export class DriftClient { settleeUserAccountPublicKey: PublicKey; settleeUserAccount: UserAccount; }[], - marketIndexes: number[] + marketIndexes: number[], + revenueShareEscrowMap?: RevenueShareEscrowMap ): Promise> { const ixs = []; for (const { settleeUserAccountPublicKey, settleeUserAccount } of users) { @@ -7836,7 +7837,8 @@ export class DriftClient { await this.settlePNLIx( settleeUserAccountPublicKey, settleeUserAccount, - marketIndex + marketIndex, + revenueShareEscrowMap ) ); } @@ -7851,7 +7853,7 @@ export class DriftClient { marketIndex: number, txParams?: TxParams, optionalIxs?: TransactionInstruction[], - escrowMap?: RevenueShareEscrowMap + revenueShareEscrowMap?: RevenueShareEscrowMap ): Promise { const lookupTableAccounts = await this.fetchAllLookupTableAccounts(); @@ -7861,7 +7863,7 @@ export class DriftClient { settleeUserAccountPublicKey, settleeUserAccount, marketIndex, - escrowMap + revenueShareEscrowMap ), txParams, undefined,