Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.
When you want users to choose their own deposit amount but need to enforce a floor or ceiling (to meet minimum transaction thresholds, cap exposure, or comply with business rules), set minAmountOut and maxAmountOut in your route options. The widget constrains its slider and input field to the range you configure.
The example above also sets routeRefreshMs: 10000. This controls how often the widget re-fetches route previews, in milliseconds. When users are actively adjusting an amount within a constrained range, a shorter refresh interval keeps quotes current. The default is 15000 ms (15 seconds).
minAmountOut and maxAmountOut constrain the widget UI. They do not replace server-side validation. Your backend should independently enforce any deposit limits that are critical to your business logic.
If you want to lock users to a single amount rather than a range, use fixedFromAmount instead. See the fixed amount guide for details.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Trustware","colors":{"primary":"#3B82F6","light":"#2563EB","dark":"#60A5FA"},"logo":{"light":"https://mintcdn.com/trustware/2MgKUWIkQdAtY__O/images/TW_Black_icon.png?fit=max\u0026auto=format\u0026n=2MgKUWIkQdAtY__O\u0026q=85\u0026s=4d16590f457272d26e07619b12eab2e9","dark":"https://mintcdn.com/trustware/2MgKUWIkQdAtY__O/images/TrustwareWhiteCastle.png?fit=max\u0026auto=format\u0026n=2MgKUWIkQdAtY__O\u0026q=85\u0026s=85017431ca4ea6a64e58241da56b73dc"},"favicon":"https://media.brand.dev/cf3363c7-1e63-4cf1-9488-e9e643ffb2bb.jpg","navbar":{"links":[{"icon":"npm","href":"https://www.npmjs.com/package/@trustware/sdk","label":"npm"}],"primary":{"type":"github","href":"https://github.com/trustware-io/trustware-sdk"}},"footer":{"socials":{"github":"https://github.com/orgs/trustware-io","x":"https://x.com/Trustware_io","website":"https://Trustware.io"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trustware","hasAudioNarration":false,"actualSubdomain":"trustware","customDomains":["docs.trustware.io"],"gitSource":{"type":"github","owner":"trustware-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad7c2bc77c5894178f37263","collectionId":"b73687f7-842b-435f-ae4c-6e0cb2326879","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad7c2bc77c5894178f37263"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad7c2bc77c5894178f37263","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Documentation","count":24},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Endpoints","count":8},{"language":"default","tag":"Configuration","count":5},{"language":"default","tag":"Integration","count":4},{"language":"default","tag":"SDK Reference","count":2},{"language":"default","tag":"Events \u0026 Errors","count":2},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"Getting Started","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"[data-component-name=table-of-contents],[data-component-name=toc],aside[aria-label=\"On this page\"i],aside[aria-label=\"Table of contents\"i],nav[aria-label=\"On this page\"i],nav[aria-label=\"Table of contents\"i]{border-left:1px solid #e5e7eb;padding-left:1rem}@media (prefers-color-scheme:dark){[data-component-name=table-of-contents],[data-component-name=toc],aside[aria-label=\"On this page\"i],aside[aria-label=\"Table of contents\"i],nav[aria-label=\"On this page\"i],nav[aria-label=\"Table of contents\"i]{border-left-color:rgba(255,255,255,.12)}}"}],"page":{"pagePath":"guides/amount-guardrails","slug":"/guides/amount-guardrails","pageMetadata":{"title":"Set minimum and maximum deposit amounts","description":"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.","href":"/guides/amount-guardrails"},"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: \"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.\"\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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`When you want users to choose their own deposit amount but need to enforce a floor or ceiling (to meet minimum transaction thresholds, cap exposure, or comply with business rules), set `,_jsx(_components.code,{children:`minAmountOut`}),` and `,_jsx(_components.code,{children:`maxAmountOut`}),` in your route options. The widget constrains its slider and input field to the range you configure.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-minamountout-and-maxamountout-options`,children:`The minAmountOut and maxAmountOut options`}),`\n`,_jsxs(_components.p,{children:[`Both options live inside `,_jsx(_components.code,{children:`routes.options`}),` in your `,_jsx(_components.code,{children:`TrustwareConfigOptions`}),`. You can set either one independently or both together.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,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:`13`,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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` TrustwareConfigOptions`}),_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:` \"@trustware/sdk\"`}),_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:` guardedConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_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\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trustwareConfig`}),_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:` routes:`}),_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\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trustwareConfig`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`routes`}),_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:` options:`}),_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:` minAmountOut:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"10\"`}),_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:` maxAmountOut:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"250\"`}),_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:` routeRefreshMs:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10000`}),_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`,children:_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\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`satisfies`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` TrustwareConfigOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Pass this config to `,_jsx(_components.code,{children:`TrustwareProvider`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`tsx`,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:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`TrustwareProvider`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`guardedConfig`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`TrustwareWidget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`TrustwareProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`value-format`,children:`Value format`}),`\n`,_jsx(_components.p,{children:`Both options accept a string or a number representing a USD amount:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`minAmountOut`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"10\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // string: minimum of $10 USD`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`maxAmountOut`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"250\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // string: maximum of $250 USD`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Values are interpreted as USD amounts. Do not include a currency symbol or unit suffix.`}),`\n`,_jsx(Heading,{level:`2`,id:`routerefreshms-in-this-context`,children:`routeRefreshMs in this context`}),`\n`,_jsxs(_components.p,{children:[`The example above also sets `,_jsx(_components.code,{children:`routeRefreshMs: 10000`}),`. This controls how often the widget re-fetches route previews, in milliseconds. When users are actively adjusting an amount within a constrained range, a shorter refresh interval keeps quotes current. The default is `,_jsx(_components.code,{children:`15000`}),` ms (15 seconds).`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`minAmountOut`}),` and `,_jsx(_components.code,{children:`maxAmountOut`}),` constrain the widget UI. They do not replace server-side validation. Your backend should independently enforce any deposit limits that are critical to your business logic.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you want to lock users to a single amount rather than a range, use `,_jsx(_components.code,{children:`fixedFromAmount`}),` instead. See the `,_jsx(_components.a,{href:`/guides/fixed-amount`,children:`fixed amount guide`}),` for details.`]})})]})}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":"Set minimum and maximum deposit amounts","description":"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.","href":"/guides/amount-guardrails"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The minAmountOut and maxAmountOut options","slug":"the-minamountout-and-maxamountout-options","depth":2,"children":[]},{"title":"Value format","slug":"value-format","depth":2,"children":[]},{"title":"routeRefreshMs in this context","slug":"routerefreshms-in-this-context","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"trustware","siteName":"Trustware","title":"Set minimum and maximum deposit amounts - Trustware","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-15T19:22:57.742Z","originalFileLocation":"guides/amount-guardrails.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Trustware\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/jpeg\" sizes=\"180x180\" href=\"https://media.brand.dev/cf3363c7-1e63-4cf1-9488-e9e643ffb2bb.jpg\">\u003clink data-mint-head rel=\"icon\" type=\"image/jpeg\" sizes=\"32x32\" href=\"https://media.brand.dev/cf3363c7-1e63-4cf1-9488-e9e643ffb2bb.jpg\">\u003clink data-mint-head rel=\"icon\" type=\"image/jpeg\" sizes=\"16x16\" href=\"https://media.brand.dev/cf3363c7-1e63-4cf1-9488-e9e643ffb2bb.jpg\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/jpeg\" href=\"https://media.brand.dev/cf3363c7-1e63-4cf1-9488-e9e643ffb2bb.jpg\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set minimum and maximum deposit amounts - Trustware\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Trustware\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trustware.io/guides/amount-guardrails\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trustware.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Set+minimum+and+maximum+deposit+amounts\u0026amp;description=Use+minAmountOut+and+maxAmountOut+in+routes.options+to+set+the+deposit+amount+range+while+still+letting+users+pick+a+value+within+those+bounds.\u0026amp;theme=dcdfbb00b6c2e23b972cf4e9\u0026amp;signature=5517d8b2893cf49481a054dab7ed9e1949f2f38e756f915e61e40d0153af87e9\">\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=\"Set minimum and maximum deposit amounts - Trustware\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trustware.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Set+minimum+and+maximum+deposit+amounts\u0026amp;description=Use+minAmountOut+and+maxAmountOut+in+routes.options+to+set+the+deposit+amount+range+while+still+letting+users+pick+a+value+within+those+bounds.\u0026amp;theme=dcdfbb00b6c2e23b972cf4e9\u0026amp;signature=5517d8b2893cf49481a054dab7ed9e1949f2f38e756f915e61e40d0153af87e9\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/trustware/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Trustware\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trustware.io/guides/amount-guardrails\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/amount-guardrails.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trustware.io/#organization\",\"name\":\"Trustware\",\"url\":\"https://docs.trustware.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/trustware/2MgKUWIkQdAtY__O/images/TW_Black_icon.png?fit=max\u0026auto=format\u0026n=2MgKUWIkQdAtY__O\u0026q=85\u0026s=4d16590f457272d26e07619b12eab2e9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trustware.io#website\",\"name\":\"Trustware\",\"url\":\"https://docs.trustware.io\",\"publisher\":{\"@id\":\"https://docs.trustware.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trustware.io/guides/amount-guardrails#webpage\",\"url\":\"https://docs.trustware.io/guides/amount-guardrails\",\"name\":\"Set minimum and maximum deposit amounts\",\"description\":\"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.\",\"dateModified\":\"2026-05-15T19:22:57.742Z\",\"isPartOf\":{\"@id\":\"https://docs.trustware.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trustware.io/guides/amount-guardrails#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trustware.io/guides/amount-guardrails#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.trustware.io/guides/swap-mode\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set minimum and maximum deposit amounts\",\"item\":\"https://docs.trustware.io/guides/amount-guardrails\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.trustware.io/guides/amount-guardrails#article\",\"headline\":\"Set minimum and maximum deposit amounts\",\"name\":\"Set minimum and maximum deposit amounts\",\"description\":\"Use minAmountOut and maxAmountOut in routes.options to set the deposit amount range while still letting users pick a value within those bounds.\",\"url\":\"https://docs.trustware.io/guides/amount-guardrails\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trustware.io/guides/amount-guardrails#webpage\"},\"dateModified\":\"2026-05-15T19:22:57.742Z\",\"publisher\":{\"@id\":\"https://docs.trustware.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trustware.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Trustware\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Trustware","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","expanded":true,"pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Get started with the Trustware SDK","href":"/quickstart"}]},{"group":"Integration","pages":[{"title":"Drop-in widget with Trustware wallet detection","href":"/integration/drop-in-widget"},{"title":"Connect your existing wallet to Trustware","href":"/integration/host-wallet"},{"title":"Control the widget open state with a ref","href":"/integration/controlled-widget"},{"title":"Build custom deposit UI with the headless core","href":"/integration/headless-core"}]},{"group":"Configuration","pages":[{"title":"TrustwareConfigOptions configuration reference","href":"/configuration/overview"},{"title":"Route configuration: chains, tokens, and amounts","href":"/configuration/routes"},{"title":"Customize the Trustware widget appearance","href":"/configuration/theme"},{"title":"WalletConnect configuration for Trustware","href":"/configuration/walletconnect"},{"title":"Rate limiting and retry configuration","href":"/configuration/retry"}]},{"group":"Events \u0026 Errors","pages":[{"title":"Trustware SDK lifecycle events reference","href":"/events-errors/lifecycle-events"},{"title":"Handle errors from the Trustware SDK","href":"/events-errors/error-handling"}]},{"group":"Guides","pages":[{"title":"Run the widget in swap mode","href":"/guides/swap-mode"},{"title":"Use Trustware with embedded wallets","href":"/guides/embedded-wallets"},{"title":"Withdraw from an embedded wallet","href":"/guides/embedded-wallet-withdrawals"},{"title":"Lock the deposit widget to a fixed amount","description":"Use fixedFromAmount in routes.options to pre-set the Trustware deposit amount so users see a locked USD value and cannot change it at checkout.","href":"/guides/fixed-amount"},{"title":"Set minimum and maximum deposit amounts","href":"/guides/amount-guardrails"},{"title":"Update the deposit destination at runtime","description":"Use Trustware.setDestinationAddress(), setDestinationChain(), and setDestinationToken() to update the route target dynamically after the provider has mounted.","href":"/guides/runtime-destination"},{"title":"Deposit into vault destinations","href":"/guides/vault-destinations"},{"title":"Destination call options","href":"/guides/destination-call-options"},{"title":"Sponsor gas with Paymasters","href":"/guides/paymasters"}]},{"group":"SDK Reference","pages":[{"title":"TypeScript types exported from @trustware/sdk","href":"/api-reference/types"},{"title":"Supported chains and assets","sidebarTitle":"Supported chains and assets","href":"/supported-chains"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]}]},"title":"Set minimum and maximum deposit amounts - Trustware","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":[],"chunks":[]}