> 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 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.xapp.folks.finance/technical-details/security-measures.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.
