Skip to main content

createMintProtocolFeeSharesInstruction

Builds a raw instruction that mints pending Senior and Junior protocol fee LP shares to the protocol fee recipient.

Usage

import { createMintProtocolFeeSharesInstruction } from "@exponent-labs/exponent-sdk/client/tranching";

const ix = createMintProtocolFeeSharesInstruction({
  authority: admin.publicKey,
  market: marketAddress,
  adminState,
  protocolFeeRecipient,
  mintLpSenior,
  mintLpJunior,
  tokenLpSeniorDst,
  tokenLpJuniorDst,
  tokenProgram,
  eventAuthority,
  program: tranchingProgram,
});

Accounts

NameTypeSignerWritableDescription
authorityPublicKeyYesNoAdmin authority
marketPublicKeyNoYesTranching market account
adminStatePublicKeyNoNoExponent admin state
protocolFeeRecipientPublicKeyNoNoConfigured fee recipient
mintLpSeniorPublicKeyNoYesSenior LP mint
mintLpJuniorPublicKeyNoYesJunior LP mint
tokenLpSeniorDstPublicKeyNoYesSenior LP destination account
tokenLpJuniorDstPublicKeyNoYesJunior LP destination account
tokenProgramPublicKeyNoNoSPL Token program
eventAuthorityPublicKeyNoNoEvent authority PDA
programPublicKeyNoNoExponent Tranching program

Returns

TransactionInstruction - a transaction instruction ready to be added to a transaction.