> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eco.com/llms.txt
> Use this file to discover all available pages before exploring further.

# recipes: Settle program

> Settle program: the declaration and description of each of the 1 export of @eco-incorp/sauce/recipes.

`settleSource()` returns the text of the EVM settle program: it sweeps the Pot's balance of every listed token to one recipient, with a minimum-output floor on the first token. The same file is exported as `@eco-incorp/sauce/recipes/settle.sauce.ts`. The Solana settle program is `svmSettleSource` in `@eco-incorp/sauce/svm`.

```typescript theme={null}
import { settleSource } from "@eco-incorp/sauce/recipes";
```

Generated from the type declarations of `@eco-incorp/sauce`.

### `settleSource`

*Function* · `@eco-incorp/sauce/recipes`

The `settle.sauce.ts` program text - sweep the Pot's balance of every listed token to one
recipient, with a minimum-output floor on `tokens[0]`. The shipped file's text, embedded at build
time.

Returned as the raw source (not pre-stripped, not pre-compiled) so a partner can read, hash, or
diff exactly what gets compiled. The compiler's own front-end handles the TypeScript annotations, so
the source needs no pre-processing and no extra option - pass the `CompileOptions` the compiler
package itself exports (`import type { CompileOptions } from "sauce-compiler"`). Deliberately not
restated here: `routes/rs-compile.ts` imports that type for the same reason, since a hand-written
mirror drifts on the next compiler minor with nothing to catch it.

```typescript theme={null}
export declare function settleSource(): string;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.