> For the complete documentation index, see [llms.txt](https://barrif-on-berachain.gitbook.io/barrif-on-berachain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://barrif-on-berachain.gitbook.io/barrif-on-berachain/introduction/quickstart.md).

# Abstract

<figure><img src="https://1188336664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjdOIxMzCZ5u9SGToI8RA%2Fuploads%2FSFx0cJ3lsQpMh1HpVFXe%2Fdoc%20-%20abstract%20(1).jpg?alt=media&amp;token=ca178a31-d9de-4a8f-922c-7c0cc6b010e4" alt=""><figcaption></figcaption></figure>

**Bariff** is a metastable memeFi protocol built on top of **Berachain**, leveraging a tuple-token model (CHINA, USA) collateralized by a base asset, Bera. The system operates under a **K-equilibrium mechanism**, ensuring that fluctuations in demand for one token dynamically adjust the other’s valuation, preserving systemic balance.

**Tuple-Token Dynamics and Perpetual Leverage**

Users can mint **CHINA** or **USA** by depositing **BERA**, effectively taking directional exposure on either asset. The protocol allows burning one token to mint the other, creating an arbitrage-driven stabilization layer. Fees for minting dynamically adjust based on imbalances, incentivizing efficient market participation.

**Adaptive Loan-to-Value (LTV) Mechanism**

**Bariff** mitigates systemic risk through an adaptive LTV framework. When **CHINA** and **USA** prices are close, LTV remains at a 1:1 ratio, but as divergence grows, the LTV reduces, requiring higher collateralization. This prevents excessive leverage and enforces system-wide metastability.

**The Role of the Stabilizer CHINA/USA LP**

A crucial component of the protocol is the **Stabilizer CHINA/USA LP**, which accumulates fees from other silod LPs and offers **wBERA-denominated APY** to liquidity providers. This mechanism redistributes value, creating an incentive layer that reinforces the peg between **CHINA** and **USA** while passively rewarding liquidity participants.

**Exogenous Actors and System Impact**

Random market participants who ape into **CHINA** or **USA** introduce external volatility. However, the protocol’s dynamic LTV adjustments and minting fees counteract reckless inflows, ensuring that even uninformed trading activity reinforces systemic equilibrium rather than disrupting it.


---

# 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://barrif-on-berachain.gitbook.io/barrif-on-berachain/introduction/quickstart.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.
