Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions sdk/src/driftClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7827,7 +7827,8 @@ export class DriftClient {
settleeUserAccountPublicKey: PublicKey;
settleeUserAccount: UserAccount;
}[],
marketIndexes: number[]
marketIndexes: number[],
revenueShareEscrowMap?: RevenueShareEscrowMap
): Promise<Array<TransactionInstruction>> {
const ixs = [];
for (const { settleeUserAccountPublicKey, settleeUserAccount } of users) {
Expand All @@ -7836,7 +7837,8 @@ export class DriftClient {
await this.settlePNLIx(
settleeUserAccountPublicKey,
settleeUserAccount,
marketIndex
marketIndex,
revenueShareEscrowMap
)
);
}
Expand All @@ -7851,7 +7853,7 @@ export class DriftClient {
marketIndex: number,
txParams?: TxParams,
optionalIxs?: TransactionInstruction[],
escrowMap?: RevenueShareEscrowMap
revenueShareEscrowMap?: RevenueShareEscrowMap
): Promise<TransactionSignature> {
const lookupTableAccounts = await this.fetchAllLookupTableAccounts();

Expand All @@ -7861,7 +7863,7 @@ export class DriftClient {
settleeUserAccountPublicKey,
settleeUserAccount,
marketIndex,
escrowMap
revenueShareEscrowMap
),
txParams,
undefined,
Expand Down
Loading