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 — you can setDocumentation Index
Fetch the complete documentation index at: https://docs.trustware.io/llms.txt
Use this file to discover all available pages before exploring further.
minAmountOut and maxAmountOut in your route options. The widget constrains its slider and input field to the range you configure.
The minAmountOut and maxAmountOut options
Both options live insideroutes.options in your TrustwareConfigOptions. You can set either one independently or both together.
TrustwareProvider:
Value format
Both options accept a string or a number representing a USD amount:routeRefreshMs in this context
The example above also setsrouteRefreshMs: 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.