> For the complete documentation index, see [llms.txt](https://docs.xapp.folks.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xapp.folks.finance/technical-details/security-measures.md).

# Security Measures

At Folks Finance, security is a top priority, ensuring users' funds are fully protected from potential threats. The protocol incorporates a robust range of security measures to maintain the platform's integrity and reliability.

**Key Security Measures**

**Smart Contract Audits:**

Folks Finance undergoes regular audits by leading security firms to identify and fix vulnerabilities in its smart contracts.

| Audit firm | Link                                                                                                                                                      |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ottersec   | <https://github.com/Folks-Finance/audits/blob/13f8d8307902e8ff7018fe9b6df0b5668c638863/OtterSec%20-%20Audit%20of%20XChain%20Lending%20-%20May%202024.pdf> |

#### Immunefi audit competition:

Folks Finance performed two Audit competitions on Immunefi:

| Amount    | Results                                                                             |
| --------- | ----------------------------------------------------------------------------------- |
| $ 100,000 | <https://immunefi.com/audit-competition/folksfinance-boost/leaderboard/>            |
| $ 25,000  | <https://immunefi.com/audit-competition/mitigation-audit-folksfinance/leaderboard/> |

**Bug Bounty Programs:**

The platform incentivizes the community to identify and report potential vulnerabilities through bug bounty programs. Folks Finance has stumped up $200,000 as a bounty for hackers who can identify vulnerabilities in the code.

{% embed url="<https://immunefi.com/bug-bounty/folksfinance/information/>" %}

**Rate Limits:**

* To minimize risk and limit potential losses, rate limits are imposed on the maximum amount that can be transferred within a given period.
* This mechanism helps prevent large-scale exploits and ensures controlled value transfer across the protocol.

#### Secure and Reliable Oracles

Folks Finance leverages decentralized oracle like Chainlink and Pyth Network to ensure accurate and tamper-resistant price feeds. These inputs are further validated by internal consistency and freshness checks before being utilized on-chain, mitigating the risk of price manipulation.

#### Asset-Specific Limits

Folks Finance set [Collateral Caps and Borrow Caps](/technical-details/parameters.md), denominated in USD, for each supported asset to ensure controlled exposure and prevent excessive risk concentration.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.xapp.folks.finance/technical-details/security-measures.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
