> For the complete documentation index, see [llms.txt](https://docs.liquidswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.liquidswap.com/liquidswap-v1-docs/smart-contracts/other.md).

# Other

## BinSteps

Source code: [bin\_steps/](https://github.com/pontem-network/liquidswap_v1/tree/main/bin_steps)

The concept has been previously detailed in the Pools documentation.&#x20;

Within the module, there are functions specifically designed to retrieve both the symbolic and numeric representations of a BinStep. For example, for a BinStep labeled 'X10', the function returns the string 'X10' for its symbolic representation, and numerically, it would return the value 10.

## Math Helpers

Source code: [math\_helpers/](https://github.com/pontem-network/liquidswap_v1/tree/main/math_helpers)

The protocol leverages helper functions that implement tree math, optimizing the performance of coin swaps across Bins. At its core, the protocol utilizes fixed-point arithmetic, specifically 128-bit and 64-bit math, to ensure accurate and efficient calculations.

## Config

Source code: [sources/config.move](https://github.com/pontem-network/liquidswap_v1/blob/main/sources/config.move)

The component houses the current global configuration, primarily encompassing accounts designated for DAO activities, pool creation, and emergency operations.

## Treasury

Source code: [sources/treasury.move](https://github.com/pontem-network/liquidswap_v1/blob/main/sources/treasury.move)

Keeps the protocol collected fees and allows to withdraw them by DAO account.

## Emergency

Source code: [sources/emergency.move](https://github.com/pontem-network/liquidswap_v1/blob/main/sources/emergency.move)

The protocol includes a provision for an emergency pause of all swap and mint operations, which can be activated through a transaction initiated by the Emergency account.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.liquidswap.com/liquidswap-v1-docs/smart-contracts/other.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
