> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exponent.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Mint Protocol Fee Shares

> Low-level instruction to mint accrued protocol fee LP shares

# createMintProtocolFeeSharesInstruction

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

## Usage

```typescript theme={null}
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

| Name                   | Type        | Signer | Writable | Description                   |
| ---------------------- | ----------- | ------ | -------- | ----------------------------- |
| `authority`            | `PublicKey` | Yes    | No       | Admin authority               |
| `market`               | `PublicKey` | No     | Yes      | Tranching market account      |
| `adminState`           | `PublicKey` | No     | No       | Exponent admin state          |
| `protocolFeeRecipient` | `PublicKey` | No     | No       | Configured fee recipient      |
| `mintLpSenior`         | `PublicKey` | No     | Yes      | Senior LP mint                |
| `mintLpJunior`         | `PublicKey` | No     | Yes      | Junior LP mint                |
| `tokenLpSeniorDst`     | `PublicKey` | No     | Yes      | Senior LP destination account |
| `tokenLpJuniorDst`     | `PublicKey` | No     | Yes      | Junior LP destination account |
| `tokenProgram`         | `PublicKey` | No     | No       | SPL Token program             |
| `eventAuthority`       | `PublicKey` | No     | No       | Event authority PDA           |
| `program`              | `PublicKey` | No     | No       | Exponent Tranching program    |

## Returns

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