diff --git a/package.json b/package.json index 44583d36..6f6d6de5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lifi/types", - "version": "17.85.0", + "version": "17.85.0-beta.2", "description": "Types for the LI.FI stack", "keywords": [ "sdk", diff --git a/src/api.ts b/src/api.ts index 74d71796..a465c200 100644 --- a/src/api.ts +++ b/src/api.ts @@ -227,6 +227,15 @@ export interface RouteOptions extends RouteOptionsBase { * When provided, this preset will override other route options with optimized settings */ preset?: string + /** Opt into amount-flexible routing where the underlying tool supports it. + * Instead of a fixed minimum output, an amount-flexible route carries a signed + * rate, deposit bounds and an expiry alongside a deposit address, letting the + * user fund a variable amount within those bounds. Currently honored only by + * cross-chain Smart Deposit Address routes; ignored by tools that do not + * support it. + * @default false */ + amountFlexible?: boolean + /** Whether the user wants to insure their tx * @deprecated This property is deprecated and will be removed in future versions. */ insurance?: boolean