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,