The ixWithdraw instruction burns Senior or Junior LP shares and withdraws SY from the market. Use this when your integration wants SY output directly.
Usage
import { Transaction, sendAndConfirmTransaction } from "@solana/web3.js";import { TrancheSide } from "@exponent-labs/exponent-sdk/client/tranching";const ix = market.ixWithdraw({ user: wallet.publicKey, trancheSide: TrancheSide.Senior, lpAmountIn: 500_000_000n, // raw Senior LP units to burn minAmountOut: 0n, // raw SY units; set above 0 for output protection tokenLpSrc: userSeniorLpTokenAccount, tokenDst: userSyTokenAccount,});const tx = new Transaction().add(ix);const signature = await sendAndConfirmTransaction(connection, tx, [wallet]);
Parameters
Parameter
Type
Required
Description
user
PublicKey
Yes
Wallet withdrawing from the market
trancheSide
TrancheSide
Yes
TrancheSide.Senior or TrancheSide.Junior
lpAmountIn
bigint
Yes
Selected-tranche LP shares to burn, in raw LP units
minAmountOut
bigint
No
Minimum SY amount to receive, in raw SY token units. Defaults to 0n
tokenLpSrc
PublicKey
Yes
User LP token source account
tokenDst
PublicKey
Yes
User SY destination account
tokenProgram
PublicKey
No
SPL Token program
Behavior
The instruction:
Syncs market NAV against the current SY exchange rate.
Validates the selected tranche and lifecycle state.
Calculates the SY claim for the burned LP shares.
Burns LP shares and transfers SY to tokenDst.
A Junior withdrawal can fail with a coverage error if the post-withdraw utilization would exceed the allowed threshold.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Exponent Docs","description":"This documentation is intended for users and partners looking to learn more about Exponent and how to use or integrate its products.","colors":{"primary":"#AD8A44","light":"#07C983","dark":"#AD8A44"},"logo":{"light":"https://mintcdn.com/exponentv2/zTFvJfml3De5W6Jw/logo/exponent-black.svg?fit=max\u0026auto=format\u0026n=zTFvJfml3De5W6Jw\u0026q=85\u0026s=2bee57ff74c27322f3d71ded30b22f96","dark":"https://mintlify.s3.us-west-1.amazonaws.com/exponentv2/logo/light.svg"},"favicon":"https://mintcdn.com/exponentv2/qs_htjs4zgKCmd8i/logo/exponent-white-version-favicon.svg?fit=max\u0026auto=format\u0026n=qs_htjs4zgKCmd8i\u0026q=85\u0026s=de7124a8f50fae9afb09fb7314f3841d","appearance":{"default":"light","strict":true},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://t.me/exponentcitizens","label":"Community"},{"href":"https://exponent.finance/blog","label":"Blog"},{"href":"https://github.com/exponent-finance/exponent-core","label":"Github"}],"primary":{"type":"button","label":"Open App","href":"https://app.exponent.finance"}},"footer":{"socials":{"x":"https://x.com/exponentfinance","github":"https://github.com/exponent-finance/exponent-core"}},"seo":{"metatags":{"description":"This documentation is intented for users and partners looking to learn more about Exponent, its SDKs and how to integrate its products, and provide guides on how to use Exponent for portfolio construction on Solana.","og:image":"/logo/exponent-docs-cover-compressed.png"}},"contextual":{"options":["chatgpt","claude","perplexity"],"display":"header"},"thumbnails":{"background":"https://mintcdn.com/exponentv2/yj0_4Td2urTHSAiY/logo/exponent-docs-cover-compressed.png?fit=max\u0026auto=format\u0026n=yj0_4Td2urTHSAiY\u0026q=85\u0026s=33f6045f4d04591072740dfbf73bf21b"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"exponentv2","hasAudioNarration":false,"actualSubdomain":"exponentv2","customDomains":["docs.exponent.finance"],"gitSource":{"type":"github","owner":"ttrofel","repo":"v2-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ad17265676b549dbf89bba7","clientVersion":"0.0.4128","searchFilterCounts":[{"language":"default","tag":"Yield Exchange","count":111},{"language":"default","tag":"Raw Instructions","count":80},{"language":"default","tag":"Strategy Vaults","count":78},{"language":"default","tag":"API Documentation","count":67},{"language":"default","tag":"CLMM","count":57},{"language":"default","tag":"Other Resources","count":41},{"language":"default","tag":"Order Book","count":34},{"language":"default","tag":"Exponent Core","count":34},{"language":"default","tag":"Risk-Tranching","count":30},{"language":"default","tag":"TypeScript Read Functions","count":23}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:'PPMori-SemiBold';src:url('https://exponent-finance.github.io/docs/assets/public-fonts/PPMori-SemiBold.woff2') format('woff2');font-weight:600}h1,h2,h3,h4,h5,h6{font-family:'PPMori-SemiBold', sans-serif;font-weight:600}#footer a[href*=\"mintlify.com\"]{display:none!important;visibility:hidden!important;opacity:0!important}.topbar-cta-button{border-radius:8px!important}.rounded-xl{border-radius:8px!important}.rounded-2xl{border-radius:8px;border-color:transparent}.border-standard{border-radius:0px!important}.border-gray-100{border-color:transparent!important}#navigation-items li>*{background-color:transparent!important;padding-top:0.25rem;padding-bottom:0.25rem}#navigation-items li>*:hover{color:rgb(var(--gray-600))!important}#navigation-items a:hover{color:rgb(var(--gray-600))!important}#navigation-items a.text-primary{color:#171b19!important}#navigation-items a{color:#8f8e8e!important}.justify-start{color:#8f8e8e!important}.text-xs{font-size:14px!important}.card{background-color:#fcfbfb!important;border:none!important;border-radius:8px!important}.card:hover{background-color:#f9f9f9!important}#footer{border-color:#eef2f0!important}@media (min-width: 1024px){.pt-36{padding-left:2rem!important;padding-right:0.5rem!important}}.leading-6{line-height:1.5rem;font-size:14px}.text-gray-600{color:#8f8e8e}.body{}#code-block{background-color:#fcfbfb!important}[data-component-part=\"code-block-root\"]{background-color:#fcfbfb!important}[data-component-part=\"code-block-root\"] pre{background-color:#fcfbfb!important}[data-component-part=\"code-block-root\"] [data-fade-overlay] *{--fade-color-light: #f0ece8 !important}[data-component-part=\"code-block-root\"] [data-fade-overlay]::before,[data-component-part=\"code-block-root\"] [data-fade-overlay]::after{background:linear-gradient(to right, transparent, #f0ece8)!important}"},{"filePath":"api-documentation/api-docs.css","content":"#content-area:has(#api-playground-2-operation-page) #pagination{margin-top:3.5rem}#content-area:has(#api-playground-2-operation-page) #header .prose,#content-area:has(#api-playground-2-operation-page) #header .prose p,#api-playground-2-operation-page [data-component-part=\"field-content\"],#api-playground-2-operation-page .prose p,#api-playground-2-operation-page .prose [data-as=\"p\"]{color:#708895}#content-area:has(#api-playground-2-operation-page) #page-title{font-weight:500}#content-area:has(#api-playground-2-operation-page) #header .prose,#content-area:has(#api-playground-2-operation-page) #header .prose p{font-size:16px;line-height:1.75}#content-container:has(#api-playground-2-operation-page) #content-side-layout .code-group{background:#f4f5f7!important;border:1px solid #dedfe3!important;border-radius:16px!important;padding:2px;overflow:hidden}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-bar\"]{min-height:38px;padding-right:12px}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-bar\"] :is([role=\"tablist\"],[role=\"tab\"],.text-xs,span.truncate,button[aria-haspopup=\"menu\"],button[aria-haspopup=\"menu\"] p){font-size:12px!important;line-height:20px}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-bar\"] button[aria-haspopup=\"menu\"]{padding-block:0;align-self:center}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-bar\"] button[aria-haspopup=\"menu\"] p{margin:0}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-bar\"] [role=\"tablist\"]{min-height:38px;align-items:stretch}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-bar\"] [role=\"tab\"]{margin-block:0;padding-block:9px}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-bar\"] [role=\"tab\"]>.absolute{bottom:0}#api-playground-2-operation-page .tryit-button{background-color:#ad8a44!important;color:#fff!important;border-radius:12px!important;height:38px;padding-inline:14px;flex-shrink:0}#api-playground-2-operation-page .border-standard:has(>div>.tryit-button){border:1px solid #e5e7eb!important;border-radius:16px!important;background:#fff;padding:6px}#api-playground-2-operation-page .border-standard:has(>.method-pill){border:1px solid #e5e7eb!important;border-radius:12px!important;min-height:38px;padding-left:7px;gap:4px}#api-playground-2-operation-page .method-pill{border-radius:8px}#api-playground-2-operation-page .tryit-button [data-component-part=\"icon-svg\"]{width:14px;height:14px;mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")!important;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")!important}#api-playground-2-operation-page details.expandable{border:1px solid #e5e7eb!important;border-radius:12px!important;background:#fff}#api-playground-2-operation-page details.expandable>summary{border-radius:11px!important;padding:12px 16px}#api-playground-2-operation-page details.expandable>summary:hover{background:#f4f5f7}#api-playground-2-operation-page details.expandable[open]>summary{border-radius:11px 11px 0 0!important;background:#f4f5f7}#api-playground-2-operation-page details.expandable>[data-component-part=\"expandable-content\"]{border-top:1px solid #e5e7eb!important;margin-inline:0;padding:0 18px 8px}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-block-root\"],#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-block-root\"] pre{background:#fff!important}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-block-root\"]{border-radius:14px!important;--fade-color-light: #fff}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-block-root\"] [data-component-part=\"scroll-area-content\"]{min-width:100%!important;max-width:100%}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-group-tab-content\"],#content-container:has(#api-playground-2-operation-page) #content-side-layout pre,#content-container:has(#api-playground-2-operation-page) #content-side-layout pre code{white-space:pre-wrap!important;overflow-wrap:anywhere;font-size:13px;line-height:1.65}#content-container:has(#api-playground-2-operation-page) #content-side-layout pre code{width:100%!important;min-width:0!important}#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-block-root\"] [data-fade-overlay] *,#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-block-root\"] [data-fade-overlay]::before,#content-container:has(#api-playground-2-operation-page) #content-side-layout [data-component-part=\"code-block-root\"] [data-fade-overlay]::after{--fade-color-light: #fff !important;background:transparent!important}#api-playground-2-operation-page{--api-section-gap: 56px;gap:var(--api-section-gap)}#api-playground-2-operation-page h2{font-size:18px!important;font-weight:600;line-height:1.5;color:#18181b}#api-playground-2-operation-page h3{font-size:16px!important;line-height:1.5}#api-playground-2-operation-page .mdx-content>h2,#api-playground-2-operation-page .api-response-header{padding-bottom:16px;margin-bottom:24px;border-bottom:1px solid rgba(148, 163, 184, 0.16)}#api-playground-2-operation-page .mdx-content>h2,#api-playground-2-operation-page .api-response{margin-top:var(--api-section-gap)}#api-playground-2-operation-page .mdx-content>:is(h2,.api-response):first-child{margin-top:0}#api-playground-2-operation-page .api-response-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}#api-playground-2-operation-page .api-response-header h2{margin:0!important;padding:0}#api-playground-2-operation-page .api-response-format{display:flex;align-items:center;gap:32px;color:#52525b;font-size:14px;font-weight:600}#api-playground-2-operation-page .api-response-format select{appearance:auto;background:transparent;border:0;color:inherit;font:inherit;padding:4px;cursor:pointer}#api-playground-2-operation-page .api-response-format select:focus-visible{outline:2px solid #ad8a44;outline-offset:3px}#api-playground-2-operation-page .api-response-mime{font-family:monospace}#content-area:has(#api-playground-2-operation-page) #header .eyebrow{font-weight:400}body:has(#api-playground-2-operation-page) #sidebar-content a:has(.method-nav-pill){align-items:center}body:has(#api-playground-2-operation-page) #sidebar-content .method-nav-pill{width:auto}body:has(#api-playground-2-operation-page) #sidebar-content a:has(.method-nav-pill)>div{align-items:center}@media (min-width: 1280px){#content-container:has(#api-playground-2-operation-page) #content-side-layout{flex:0 0 24rem;width:24rem;max-width:24rem}#content-container:has(#api-playground-2-operation-page) #content-area{width:auto;min-width:0}#content-container:has(#api-playground-2-operation-page) #content-side-layout>div{width:100%;min-width:0}}"}],"page":{"pagePath":"developer-tranching/typescript/instructions/ix-withdraw","slug":"/developer-tranching/typescript/instructions/ix-withdraw","pageMetadata":{"title":"Withdraw SY","description":"Burn tranche LP shares and withdraw SY","href":"/developer-tranching/typescript/instructions/ix-withdraw"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Burn tranche LP shares and withdraw SY\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`ixWithdraw`}),` instruction burns Senior or Junior LP shares and withdraws SY from the market. Use this when your integration wants SY output directly.`]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Transaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sendAndConfirmTransaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@solana/web3.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TrancheSide`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@exponent-labs/exponent-sdk/client/tranching\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` ix`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` market`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ixWithdraw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`publicKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` trancheSide:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TrancheSide`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Senior`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lpAmountIn:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 500_000_000`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`n`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// raw Senior LP units to burn`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` minAmountOut:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`n`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// raw SY units; set above 0 for output protection`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tokenLpSrc:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userSeniorLpTokenAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tokenDst:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userSyTokenAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` tx`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Transaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` signature`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` sendAndConfirmTransaction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`connection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`wallet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Wallet withdrawing from the market`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trancheSide`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TrancheSide`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`TrancheSide.Senior`}),` or `,_jsx(_components.code,{children:`TrancheSide.Junior`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lpAmountIn`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bigint`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Selected-tranche LP shares to burn, in raw LP units`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`minAmountOut`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bigint`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Minimum SY amount to receive, in raw SY token units. Defaults to `,_jsx(_components.code,{children:`0n`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tokenLpSrc`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`User LP token source account`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tokenDst`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`User SY destination account`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tokenProgram`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`SPL Token program`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`behavior`,children:`Behavior`}),`\n`,_jsx(_components.p,{children:`The instruction:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Syncs market NAV against the current SY exchange rate.`}),`\n`,_jsx(_components.li,{children:`Validates the selected tranche and lifecycle state.`}),`\n`,_jsx(_components.li,{children:`Calculates the SY claim for the burned LP shares.`}),`\n`,_jsxs(_components.li,{children:[`Burns LP shares and transfers SY to `,_jsx(_components.code,{children:`tokenDst`}),`.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`A Junior withdrawal can fail with a coverage error if the post-withdraw utilization would exceed the allowed threshold.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Withdraw SY","description":"Burn tranche LP shares and withdraw SY","href":"/developer-tranching/typescript/instructions/ix-withdraw"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Behavior","slug":"behavior","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/exponentv2/06aaf7ac021fe273/api-documentation/request-language.js"],"subdomain":"exponentv2","siteName":"Exponent Docs","title":"Withdraw SY - Exponent Docs","navMaps":{"firstHrefInVersion":{"User Docs":{"href":"/","matchLevel":4},"Developers":{"href":"/developer-tranching/typescript/instructions/ix-withdraw","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-06-30T08:29:47.058Z","originalFileLocation":"developer-tranching/typescript/instructions/ix-withdraw.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Burn tranche LP shares and withdraw SY\">\u003cmeta data-mint-head name=\"application-name\" content=\"Exponent Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Withdraw SY - Exponent Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Burn tranche LP shares and withdraw SY\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Exponent Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://exponentv2.mintlify.site/logo/exponent-docs-cover-compressed.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Withdraw SY - Exponent Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Burn tranche LP shares and withdraw SY\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://exponentv2.mintlify.site/logo/exponent-docs-cover-compressed.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/exponentv2/TH_wpG-itD0qj-nz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Exponent Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#AD8A44\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developer-tranching/typescript/instructions/ix-withdraw.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.exponent.finance/#organization\",\"name\":\"Exponent Docs\",\"url\":\"https://docs.exponent.finance\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/exponentv2/zTFvJfml3De5W6Jw/logo/exponent-black.svg?fit=max\u0026auto=format\u0026n=zTFvJfml3De5W6Jw\u0026q=85\u0026s=2bee57ff74c27322f3d71ded30b22f96\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.exponent.finance#website\",\"name\":\"Exponent Docs\",\"url\":\"https://docs.exponent.finance\",\"publisher\":{\"@id\":\"https://docs.exponent.finance/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw#webpage\",\"url\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw\",\"name\":\"Withdraw SY\",\"description\":\"Burn tranche LP shares and withdraw SY\",\"dateModified\":\"2026-06-30T08:29:47.058Z\",\"isPartOf\":{\"@id\":\"https://docs.exponent.finance#website\"},\"breadcrumb\":{\"@id\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tranching SDK\",\"item\":\"https://docs.exponent.finance/developer-tranching/sdk-quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TypeScript Instructions\",\"item\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Withdraw SY\",\"item\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw#article\",\"headline\":\"Withdraw SY\",\"name\":\"Withdraw SY\",\"description\":\"Burn tranche LP shares and withdraw SY\",\"url\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw\",\"mainEntityOfPage\":{\"@id\":\"https://docs.exponent.finance/developer-tranching/typescript/instructions/ix-withdraw#webpage\"},\"image\":\"https://docs.exponent.finance/logo/exponent-docs-cover-compressed.png\",\"dateModified\":\"2026-06-30T08:29:47.058Z\",\"publisher\":{\"@id\":\"https://docs.exponent.finance/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.exponent.finance#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Exponent Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Exponent Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/developer-tranching/typescript/instructions/ix-withdraw.md","siteName":"Exponent Docs","nav":{"global":null,"versions":[{"version":"User Docs","pages":[{"title":"User Docs","href":"/"}]},{"version":"Developers","tabs":[{"tab":"Technical Overview","pages":[{"title":"Technical Overview","href":"/developers/exponent-developer-docs"}]},{"tab":"Yield Exchange","pages":[{"title":"Yield Exchange","href":"/developer-core/overview"}]},{"tab":"Risk-Tranching","groups":[{"group":"Tranching Basics","pages":[{"title":"Overview","icon":"shapes","href":"/developer-tranching/overview"},{"title":"Technical Concepts","icon":"layer-group","href":"/developer-tranching/concepts"},{"title":"Return Curves","icon":"chart-line","href":"/developer-tranching/return-curves"}]},{"group":"DeFi Integrations","pages":[{"title":"Overview","icon":"puzzle-piece","href":"/developer-tranching/defi-integrations/overview"},{"title":"LP Token Model","icon":"coins","href":"/developer-tranching/defi-integrations/token-model"},{"group":"Pricing and Previews","icon":"calculator","root":{"title":"Pricing and Previews","icon":"calculator","href":"/developer-tranching/defi-integrations/pricing-and-previews"},"pages":[{"title":"Units and Fees","icon":"scale-balanced","href":"/developer-tranching/defi-integrations/pricing-units-and-fees"},{"title":"LP Pricing","icon":"chart-line","href":"/developer-tranching/defi-integrations/lp-pricing"},{"title":"Deposit Previews","icon":"arrow-down-to-line","href":"/developer-tranching/defi-integrations/deposit-previews"},{"title":"Withdrawal Previews","icon":"arrow-up-from-line","href":"/developer-tranching/defi-integrations/withdrawal-previews"}]},{"title":"Restrictions and Risk Checks","icon":"shield-check","href":"/developer-tranching/defi-integrations/restrictions"},{"title":"SDK Preflight","icon":"file-code","href":"/developer-tranching/defi-integrations/sdk-preflight"}]},{"group":"Tranching SDK","pages":[{"title":"Tranching SDK","icon":"book-blank","href":"/developer-tranching/sdk-quickstart"},{"group":"TypeScript Instructions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-tranching/typescript/instructions/overview"},"pages":[{"title":"Wrapper Deposit","href":"/developer-tranching/typescript/instructions/ix-wrapper-deposit"},{"title":"Wrapper Withdraw","href":"/developer-tranching/typescript/instructions/ix-wrapper-withdraw"},{"title":"Deposit SY","description":"Deposit existing SY into a Senior or Junior tranche","href":"/developer-tranching/typescript/instructions/ix-deposit"},{"title":"Withdraw SY","href":"/developer-tranching/typescript/instructions/ix-withdraw"}]},{"group":"TypeScript Read Functions","icon":"file-spreadsheet","root":{"title":"Overview","description":"Overview of Exponent Tranching read functions and getters","href":"/developer-tranching/typescript/read-functions/overview"},"pages":[{"title":"Market State","href":"/developer-tranching/typescript/read-functions/get-market-state"},{"title":"Capacity and LP Prices","href":"/developer-tranching/typescript/read-functions/get-capacity-and-lp-prices"},{"title":"APY and Protection","href":"/developer-tranching/typescript/read-functions/calculate-apy-and-protection"},{"title":"Addresses and Token Accounts","href":"/developer-tranching/typescript/read-functions/get-addresses-and-token-accounts"}]}]},{"group":"Other Resources","pages":[{"group":"Raw Instructions","icon":"square-code","root":{"title":"Overview","href":"/developer-tranching/raw-instructions/overview"},"pages":[{"title":"Initialize Tranching Market","href":"/developer-tranching/raw-instructions/raw-initialize-tranching-market"},{"title":"Deposit","href":"/developer-tranching/raw-instructions/raw-deposit"},{"title":"Withdraw","href":"/developer-tranching/raw-instructions/raw-withdraw"},{"title":"Wrapper Deposit","href":"/developer-tranching/raw-instructions/raw-wrapper-deposit"},{"title":"Wrapper Withdraw","href":"/developer-tranching/raw-instructions/raw-wrapper-withdraw"},{"title":"Modify Market","href":"/developer-tranching/raw-instructions/raw-modify-market"},{"title":"Mint Protocol Fee Shares","href":"/developer-tranching/raw-instructions/raw-mint-protocol-fee-shares"},{"title":"Set Market Paused","href":"/developer-tranching/raw-instructions/raw-set-market-paused"}]},{"group":"Account References","icon":"folder-grid","root":{"title":"ExponentTranchingMarket","href":"/developer-tranching/account-references/exponent-tranching-market"},"pages":[{"title":"ExponentTranchingMarket","href":"/developer-tranching/account-references/exponent-tranching-market"},{"title":"Return Model","href":"/developer-tranching/account-references/return-model"}]}]}]},{"tab":"Strategy Vaults","pages":[{"title":"Strategy Vaults","href":"/developer-strategy-vaults/introduction"}]},{"tab":"API Documentation","pages":[{"title":"API Documentation","href":"/api-documentation/introduction"}]}]}]},"basePath":"","title":"Withdraw SY - Exponent Docs","buildId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","deploymentId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","dynamics":[],"chunks":[]}