Provide liquidity from base assets and receive YT and LP tokens
The ixWrapperProvideLiquidity method on the MarketThree class provides liquidity to the CLMM pool using base assets. It wraps the base into SY, strips SY into PT and YT, adds liquidity with the PT, and returns YT and LP tokens to the depositor in a single atomic operation.
This is an async method because it needs to construct the SY minting accounts and YT deposit accounts from the market’s configuration.
Required Parameters
Parameter
Type
Description
depositor
PublicKey
The depositor’s wallet public key
amountBase
bigint
Amount of base asset to provide
minLpOut
bigint
Minimum amount of LP tokens to receive
lowerTickApy
number
Lower bound APY for the liquidity range
upperTickApy
number
Upper bound APY for the liquidity range
Optional Parameters
Parameter
Type
Description
tokenSyDepositor
PublicKey
Intermediate SY token account. Defaults to depositor’s ATA
tokenYtDepositor
PublicKey
Destination YT token account. Defaults to depositor’s ATA
tokenPtDepositor
PublicKey
Intermediate PT token account. Defaults to depositor’s ATA
tokenBaseDepositor
PublicKey
Source base token account. Defaults to depositor’s ATA
lpPosition
Keypair | PublicKey
LP position account. Defaults to a generated Keypair
Returns
Returns a Promise<PreparedInstruction> with the following structure:
{ ixs: TransactionInstruction[], // Main instructions to execute setupIxs: TransactionInstruction[], // Setup instructions for creating ATAs signers?: Keypair[] // Optional signers (lpPosition if generated)}
The setupIxs array contains instructions to create the necessary associated token accounts (ATAs) for SY, YT, and PT tokens. The ixs array contains the flavor pre-instructions, the provide liquidity instruction, and the flavor post-instructions. If lpPosition was not provided, signers will contain the generated LP position keypair.
{"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":"6b059a9341bc7974263fef3c","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Yield Exchange","count":111},{"language":"default","tag":"Strategy Vaults","count":78},{"language":"default","tag":"API Documentation","count":67},{"language":"default","tag":"CLMM","count":57},{"language":"default","tag":"Raw Instructions","count":54},{"language":"default","tag":"Reference","count":45},{"language":"default","tag":"Order Book","count":34},{"language":"default","tag":"Exponent Core","count":34},{"language":"default","tag":"Risk-Tranching","count":34},{"language":"default","tag":"Program instructions","count":26}]},"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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"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-clmm/typescript/instructions/ix-wrapper-provide-liquidity","slug":"/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity","pageMetadata":{"title":"Provide Liquidity","description":"Provide liquidity from base assets and receive YT and LP tokens","href":"/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity"},"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: \"Provide liquidity from base assets and receive YT and LP tokens\"\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`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`ixWrapperProvideLiquidity`}),` method on the `,_jsx(_components.code,{children:`MarketThree`}),` class provides liquidity to the CLMM pool using base assets. It wraps the base into SY, strips SY into PT and YT, adds liquidity with the PT, and returns YT and LP tokens to the depositor in a single atomic operation.`]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,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:`16`,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:`MarketThree`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LOCAL_ENV`}),_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\"`}),_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:`Connection`}),_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:`, `}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Keypair`}),_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`,_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:` connection`}),_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:` Connection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.mainnet-beta.solana.com\"`}),_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:` market`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MarketThree`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`load`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`LOCAL_ENV`}),_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:`marketAddress`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`ixs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`setupIxs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`signers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_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:`#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:`ixWrapperProvideLiquidity`}),_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:` depositor:`}),_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:` amountBase:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10_000_000_000`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`n`}),_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:` minLpOut:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 9_000_000_000`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`n`}),_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:` lowerTickApy:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.05`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 5% APY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` upperTickApy:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 15% APY`})]}),`\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:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`setupIxs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ixs`}),_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:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`This is an async method because it needs to construct the SY minting accounts and YT deposit accounts from the market’s configuration.`})}),`\n`,_jsx(Heading,{level:`2`,id:`required-parameters`,children:`Required 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:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`depositor`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`The depositor’s wallet public key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amountBase`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bigint`})}),_jsx(_components.td,{children:`Amount of base asset to provide`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`minLpOut`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bigint`})}),_jsx(_components.td,{children:`Minimum amount of LP tokens to receive`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lowerTickApy`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Lower bound APY for the liquidity range`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`upperTickApy`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Upper bound APY for the liquidity range`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`optional-parameters`,children:`Optional 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:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tokenSyDepositor`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`Intermediate SY token account. Defaults to depositor’s ATA`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tokenYtDepositor`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`Destination YT token account. Defaults to depositor’s ATA`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tokenPtDepositor`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`Intermediate PT token account. Defaults to depositor’s ATA`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tokenBaseDepositor`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PublicKey`})}),_jsx(_components.td,{children:`Source base token account. Defaults to depositor’s ATA`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lpPosition`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Keypair`}),` | `,_jsx(_components.code,{children:`PublicKey`})]}),_jsx(_components.td,{children:`LP position account. Defaults to a generated Keypair`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsxs(_components.p,{children:[`Returns a `,_jsx(_components.code,{children:`Promise\u003cPreparedInstruction>`}),` with the following structure:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` ixs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TransactionInstruction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[], `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Main instructions to execute`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:` setupIxs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TransactionInstruction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[], `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Setup instructions for creating ATAs`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` signers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Keypair`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Optional signers (lpPosition if generated)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`setupIxs`}),` array contains instructions to create the necessary associated token accounts (ATAs) for SY, YT, and PT tokens. The `,_jsx(_components.code,{children:`ixs`}),` array contains the flavor pre-instructions, the provide liquidity instruction, and the flavor post-instructions. If `,_jsx(_components.code,{children:`lpPosition`}),` was not provided, `,_jsx(_components.code,{children:`signers`}),` will contain the generated LP position keypair.`]})]})}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":"Provide Liquidity","description":"Provide liquidity from base assets and receive YT and LP tokens","href":"/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Required Parameters","slug":"required-parameters","depth":2,"children":[]},{"title":"Optional Parameters","slug":"optional-parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/exponentv2/06aaf7ac021fe273/api-documentation/request-language.js"],"subdomain":"exponentv2","siteName":"Exponent Docs","title":"Provide Liquidity - Exponent Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"User Docs":{"href":"/","matchLevel":4},"Developers":{"href":"/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T14:09:30.847Z","originalFileLocation":"developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity.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=\"Provide liquidity from base assets and receive YT and LP tokens\">\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=\"Provide Liquidity - Exponent Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Provide liquidity from base assets and receive YT and LP tokens\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Exponent Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity\">\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=\"Provide Liquidity - Exponent Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Provide liquidity from base assets and receive YT and LP tokens\">\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-clmm/typescript/instructions/ix-wrapper-provide-liquidity\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity.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-clmm/typescript/instructions/ix-wrapper-provide-liquidity#webpage\",\"url\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity\",\"name\":\"Provide Liquidity\",\"description\":\"Provide liquidity from base assets and receive YT and LP tokens\",\"dateModified\":\"2026-11-24T14:09:30.847Z\",\"isPartOf\":{\"@id\":\"https://docs.exponent.finance#website\"},\"breadcrumb\":{\"@id\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLMM\",\"item\":\"https://docs.exponent.finance/developer-clmm/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TypeScript Instructions\",\"item\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Provide Liquidity\",\"item\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity#article\",\"headline\":\"Provide Liquidity\",\"name\":\"Provide Liquidity\",\"description\":\"Provide liquidity from base assets and receive YT and LP tokens\",\"url\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity\",\"mainEntityOfPage\":{\"@id\":\"https://docs.exponent.finance/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity#webpage\"},\"image\":\"https://docs.exponent.finance/logo/exponent-docs-cover-compressed.png\",\"dateModified\":\"2026-11-24T14:09:30.847Z\",\"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-clmm/typescript/instructions/ix-wrapper-provide-liquidity.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","groups":[{"group":"Exponent Core","pages":[{"title":"Overview","icon":"shapes","mode":"default","href":"/developer-core/overview"},{"title":"Technical Concepts","icon":"distribute-spacing-vertical","href":"/developer-core/core-concepts"},{"title":"Yield Stripping SDK","icon":"book-blank","href":"/developer-core/core-sdk"},{"group":"TypeScript Vault Instructions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-core/typescript/instructions/overview"},"pages":[{"title":"Overview","href":"/developer-core/typescript/instructions/overview"},{"title":"Strip (SY)","href":"/developer-core/typescript/instructions/ix-strip"},{"title":"Strip","href":"/developer-core/typescript/instructions/ix-strip-from-base"},{"title":"Merge (to SY)","href":"/developer-core/typescript/instructions/ix-merge"},{"title":"Merge","href":"/developer-core/typescript/instructions/ix-merge-to-base"},{"title":"Initialize Yield Position","href":"/developer-core/typescript/instructions/ix-initialize-yield-position"},{"title":"Collect Interest","href":"/developer-core/typescript/instructions/ix-collect-interest"},{"title":"Collect Emission","href":"/developer-core/typescript/instructions/ix-collect-emission"}]},{"group":"TypeScript YtPosition Instructions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-core/typescript/yt-instructions/overview"},"pages":[{"title":"Overview","href":"/developer-core/typescript/yt-instructions/overview"},{"title":"Deposit YT","href":"/developer-core/typescript/yt-instructions/ix-deposit-yt"},{"title":"Withdraw YT","href":"/developer-core/typescript/yt-instructions/ix-withdraw-yt"},{"title":"Stage Yield","href":"/developer-core/typescript/yt-instructions/ix-stage-yield"},{"title":"Collect Interest","href":"/developer-core/typescript/yt-instructions/ix-yt-collect-interest"},{"title":"Collect Emission","href":"/developer-core/typescript/yt-instructions/ix-yt-collect-emission"}]},{"group":"TypeScript Read Functions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-core/typescript/read-functions/overview"},"pages":[{"title":"Overview","href":"/developer-core/typescript/read-functions/overview"},{"title":"Get Exchange Rate","href":"/developer-core/typescript/read-functions/get-exchange-rate"},{"title":"Get Yield Position","href":"/developer-core/typescript/read-functions/get-yield-position"},{"title":"Get Claimable Interest","href":"/developer-core/typescript/read-functions/get-claimable-interest"},{"title":"Get Claimable Emissions","href":"/developer-core/typescript/read-functions/get-claimable-emissions"}]},{"group":"Raw Instructions","icon":"square-code","root":{"title":"Overview","href":"/developer-core/raw-instructions/overview"},"pages":[{"title":"Overview","href":"/developer-core/raw-instructions/overview"},{"title":"Strip","href":"/developer-core/raw-instructions/raw-strip"},{"title":"Merge","href":"/developer-core/raw-instructions/raw-merge"},{"title":"Initialize Yield Position","href":"/developer-core/raw-instructions/raw-initialize-yield-position"},{"title":"Deposit YT","href":"/developer-core/raw-instructions/raw-deposit-yt"},{"title":"Withdraw YT","href":"/developer-core/raw-instructions/raw-withdraw-yt"},{"title":"Stage YT Yield","href":"/developer-core/raw-instructions/raw-stage-yt-yield"},{"title":"Collect Interest","href":"/developer-core/raw-instructions/raw-collect-interest"},{"title":"Collect Emission","href":"/developer-core/raw-instructions/raw-collect-emission"},{"title":"Wrapper Strip","href":"/developer-core/raw-instructions/raw-wrapper-strip"},{"title":"Wrapper Merge","href":"/developer-core/raw-instructions/raw-wrapper-merge"},{"title":"Wrapper Collect Interest","href":"/developer-core/raw-instructions/raw-wrapper-collect-interest"}]}]},{"group":"Order Book","pages":[{"title":"Overview","icon":"shapes","href":"/developer-orderbook/overview"},{"title":"Technical Concepts","icon":"square-list","href":"/developer-orderbook/concepts"},{"title":"Virtual Offers","icon":"list-tree","href":"/developer-orderbook/virtual-offers"},{"title":"Order Book SDK","icon":"book-blank","href":"/developer-orderbook/sdk-quickstart"},{"group":"TypeScript Instructions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-orderbook/typescript/instructions/overview"},"pages":[{"title":"Overview","href":"/developer-orderbook/typescript/instructions/overview"},{"title":"Post Order","href":"/developer-orderbook/typescript/instructions/ix-wrapper-post-offer"},{"title":"Market Order","href":"/developer-orderbook/typescript/instructions/ix-wrapper-market-offer"},{"title":"Remove Order","href":"/developer-orderbook/typescript/instructions/ix-wrapper-remove-offer"},{"title":"Collect Interest","href":"/developer-orderbook/typescript/instructions/ix-wrapper-collect-interest"},{"title":"Withdraw Funds","href":"/developer-orderbook/typescript/instructions/ix-wrapper-withdraw-funds"}]},{"group":"TypeScript Read Functions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-orderbook/typescript/read-functions/overview"},"pages":[{"title":"Overview","href":"/developer-orderbook/typescript/read-functions/overview"},{"title":"Get Quote","href":"/developer-orderbook/typescript/read-functions/get-quote"},{"title":"Get User Balances","href":"/developer-orderbook/typescript/read-functions/get-user-balances"},{"title":"Get Open Orders","href":"/developer-orderbook/typescript/read-functions/get-open-orders"},{"title":"Get Withdrawable Funds","href":"/developer-orderbook/typescript/read-functions/get-withdrawable-funds"}]},{"group":"Raw Instructions","icon":"square-code","root":{"title":"Post Offer","href":"/developer-orderbook/raw-instructions/raw-post-offer"},"pages":[{"title":"Post Offer","href":"/developer-orderbook/raw-instructions/raw-post-offer"},{"title":"Market Offer","href":"/developer-orderbook/raw-instructions/raw-market-offer"},{"title":"Remove Offer","href":"/developer-orderbook/raw-instructions/raw-remove-offer"},{"title":"Collect Interest","href":"/developer-orderbook/raw-instructions/raw-collect-interest"},{"title":"Withdraw Funds","href":"/developer-orderbook/raw-instructions/raw-withdraw-funds"},{"title":"Wrapper Post Offer","href":"/developer-orderbook/raw-instructions/raw-wrapper-post-offer"},{"title":"Wrapper Market Offer","href":"/developer-orderbook/raw-instructions/raw-wrapper-market-offer"},{"title":"Wrapper Remove Offer","href":"/developer-orderbook/raw-instructions/raw-wrapper-remove-offer"},{"title":"Wrapper Collect Interest","href":"/developer-orderbook/raw-instructions/raw-wrapper-collect-interest"},{"title":"Wrapper Withdraw Funds","href":"/developer-orderbook/raw-instructions/raw-wrapper-withdraw-funds"},{"title":"Realloc Order Book Account","href":"/developer-orderbook/raw-instructions/raw-realloc-orderbook-account"}]},{"group":"Account References","icon":"folder-grid","root":{"title":"Order Book Account","href":"/developer-orderbook/account-references/orderbook"},"pages":[{"title":"Order Book Account","href":"/developer-orderbook/account-references/orderbook"},{"title":"Offer Account","href":"/developer-orderbook/account-references/offer"}]}]},{"group":"CLMM","pages":[{"title":"Overview","icon":"shapes","href":"/developer-clmm/overview"},{"title":"Technical Concepts","icon":"arrows-to-dotted-line","href":"/developer-clmm/concepts"},{"title":"CLMM SDK","icon":"book-blank","href":"/developer-clmm/sdk-quickstart"},{"group":"TypeScript Instructions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-clmm/typescript/instructions/overview"},"pages":[{"title":"Overview","href":"/developer-clmm/typescript/instructions/overview"},{"title":"Initialize Market","href":"/developer-clmm/typescript/instructions/create-pool"},{"title":"Deposit Liquidity","href":"/developer-clmm/typescript/instructions/add-liquidity"},{"title":"Withdraw Liquidity","href":"/developer-clmm/typescript/instructions/remove-liquidity"},{"title":"Provide Liquidity Classic","href":"/developer-clmm/typescript/instructions/ix-provide-liquidity-classic"},{"title":"Withdraw Liquidity Classic","href":"/developer-clmm/typescript/instructions/ix-withdraw-liquidity-classic"},{"title":"Withdraw Liquidity to Base","href":"/developer-clmm/typescript/instructions/ix-withdraw-liquidity-to-base"},{"title":"Buy PT","href":"/developer-clmm/typescript/instructions/ix-wrapper-buy-pt"},{"title":"Buy YT","description":"Buy YT tokens using base assets in a single transaction","href":"/developer-clmm/typescript/instructions/ix-wrapper-buy-yt"},{"title":"Provide Liquidity","href":"/developer-clmm/typescript/instructions/ix-wrapper-provide-liquidity"},{"title":"Sell PT","description":"Sell PT tokens for base assets in a single transaction","href":"/developer-clmm/typescript/instructions/ix-wrapper-sell-pt"},{"title":"Sell YT","href":"/developer-clmm/typescript/instructions/ix-wrapper-sell-yt"}]},{"group":"TypeScript Read Functions","icon":"file-spreadsheet","root":{"title":"Overview","href":"/developer-clmm/typescript/read-functions/overview"},"pages":[{"title":"Overview","href":"/developer-clmm/typescript/read-functions/overview"},{"title":"Reading Market State","href":"/developer-clmm/typescript/read-functions/get-pool-info"},{"title":"Get User LP Positions","href":"/developer-clmm/typescript/read-functions/get-user-lp-positions"},{"title":"Get PT and SY on Withdraw","href":"/developer-clmm/typescript/read-functions/get-pt-and-sy-on-withdraw"},{"title":"Calculate Global Fee Rate","href":"/developer-clmm/typescript/read-functions/calc-global-fee-rate"},{"title":"Calculate Claimable Fees","href":"/developer-clmm/typescript/read-functions/calculate-claimable-fees"},{"title":"Calculate Historical Fee APY","href":"/developer-clmm/typescript/read-functions/calculate-historical-fee-apy"},{"title":"Compute Fee Inside for Range","href":"/developer-clmm/typescript/read-functions/compute-fee-inside-for-range"},{"title":"Liquidity Unit Price in Asset","href":"/developer-clmm/typescript/read-functions/liquidity-unit-price-in-asset"}]},{"group":"Raw Instructions","icon":"square-code","root":{"title":"Overview","href":"/developer-clmm/raw-instructions/overview"},"pages":[{"title":"Overview","href":"/developer-clmm/raw-instructions/overview"},{"title":"Add Liquidity","href":"/developer-clmm/raw-instructions/raw-add-liquidity"},{"title":"Deposit Liquidity","href":"/developer-clmm/raw-instructions/raw-deposit-liquidity"},{"title":"Withdraw Liquidity","href":"/developer-clmm/raw-instructions/raw-withdraw-liquidity"},{"title":"Buy PT","href":"/developer-clmm/raw-instructions/raw-buy-pt"},{"title":"Buy PT (Exact Out)","href":"/developer-clmm/raw-instructions/raw-buy-pt-exact-out"},{"title":"Sell PT","href":"/developer-clmm/raw-instructions/raw-sell-pt"},{"title":"Sell PT (Exact Out)","href":"/developer-clmm/raw-instructions/raw-sell-pt-exact-out"},{"title":"Buy YT","href":"/developer-clmm/raw-instructions/raw-buy-yt"},{"title":"Sell YT","href":"/developer-clmm/raw-instructions/raw-sell-yt"},{"title":"Trade PT","href":"/developer-clmm/raw-instructions/raw-trade-pt"},{"title":"Trade PT Exact Out","href":"/developer-clmm/raw-instructions/raw-trade-pt-exact-out"},{"title":"Market Accrue Emission","href":"/developer-clmm/raw-instructions/raw-market-accrue-emission"},{"title":"Wrapper Buy PT","href":"/developer-clmm/raw-instructions/raw-wrapper-buy-pt"},{"title":"Wrapper Buy YT","href":"/developer-clmm/raw-instructions/raw-wrapper-buy-yt"},{"title":"Wrapper Sell PT","href":"/developer-clmm/raw-instructions/raw-wrapper-sell-pt"},{"title":"Wrapper Sell YT","href":"/developer-clmm/raw-instructions/raw-wrapper-sell-yt"},{"title":"Wrapper Provide Liquidity","href":"/developer-clmm/raw-instructions/raw-wrapper-provide-liquidity"},{"title":"Wrapper Provide Liquidity Base","href":"/developer-clmm/raw-instructions/raw-wrapper-provide-liquidity-base"},{"title":"Wrapper Provide Liquidity Classic","href":"/developer-clmm/raw-instructions/raw-wrapper-provide-liquidity-classic"},{"title":"Wrapper Withdraw Liquidity","href":"/developer-clmm/raw-instructions/raw-wrapper-withdraw-liquidity"},{"title":"Wrapper Withdraw Liquidity Classic","href":"/developer-clmm/raw-instructions/raw-wrapper-withdraw-liquidity-classic"}]},{"group":"Account References","icon":"folder-grid","root":{"title":"MarketThree","href":"/developer-clmm/account-references/market"},"pages":[{"title":"MarketThree","href":"/developer-clmm/account-references/market"},{"title":"LpPosition","href":"/developer-clmm/account-references/lp-position"},{"title":"LpFarm","href":"/developer-clmm/account-references/farm"}]}]}]},{"tab":"Risk-Tranching","pages":[{"title":"Risk-Tranching","href":"/developer-tranching/overview"}]},{"tab":"Strategy Vaults","pages":[{"title":"Strategy Vaults","href":"/developer-strategy-vaults/learn"}]},{"tab":"API Documentation","pages":[{"title":"API Documentation","href":"/api-documentation/introduction"}]}]}]},"basePath":"","title":"Provide Liquidity - Exponent Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}