createModifyMarketInstruction
Builds a raw instruction that updates optional market configuration fields.Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
authority | PublicKey | Yes | Yes | Market admin authority |
market | PublicKey | No | Yes | Tranching market account |
returnModelStorage | PublicKey | No | Yes | Return model storage account |
addressLookupTable | PublicKey | No | No | Current or new address lookup table |
syProgram | PublicKey | No | No | Linked SY program |
adminState | PublicKey | No | No | Exponent admin state |
systemProgram | PublicKey | No | No | System program |
Args
All args are optional. Passnull to leave a field unchanged.
| Name | Type | Description |
|---|---|---|
riskConfig | TranchingRiskConfig | null | New risk config |
protocolFeeConfig | TranchingProtocolFeeConfig | null | New protocol fee config |
returnModel | TrancheReturnModelUpdate | null | New return model or curve point updates |
syCpiAccounts | CpiAccounts | null | New SY CPI account indexes |
addressLookupTable | PublicKey | null | New address lookup table |
roles | TranchingMarketRoles | null | New admin and sentinel role lists |
maxSeniorLpSupply | u64 | null | New Senior LP supply cap |
maxJuniorLpSupply | u64 | null | New Junior LP supply cap |
seniorLpMetadata | LpTokenMetadata | null | Senior LP token metadata update |
juniorLpMetadata | LpTokenMetadata | null | Junior LP token metadata update |
Returns
TransactionInstruction - a transaction instruction ready to be added to a transaction.