> For the complete documentation index, see [llms.txt](https://goldilocks-1.gitbook.io/goldidocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://goldilocks-1.gitbook.io/goldidocs/locks/the-price-function.md).

# The Price Function

The AMM determines the market price of each LOCKS token according to the following function.

&#x20;                                                  **Market price = Floor Price +((PSL/Supply)\*(FSL+PSL/FSL)^6)**

This price function ensures that LOCKS tokens never trade below their floor prices, whilst also allowing for price to represent market sentiment in a natural and controlled manner. In essence, the function ensures that the volatility of the market price increases exponentially as the PSL/FSL ratio increases. When the PSL/FSL ratio reaches 0.5, the AMM redirects all HONEY from buys towards the FSL until the ratio falls back below 0.5. This serves to secure the AMM against potentially dangerous forms of volatility.&#x20;

Note that the AMM imposes a 5% tax on all sales of LOCKS. 100% of this tax is directed back into the PSL and FSL, in a manner that preserves the prior PSL/FSL ratio.


---

# 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:

```
GET https://goldilocks-1.gitbook.io/goldidocs/locks/the-price-function.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
