> 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/readme.md).

# Bariff— Onchain Wars

## &#x20;<a href="#overview" id="overview"></a>

<figure><img src="https://1188336664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjdOIxMzCZ5u9SGToI8RA%2Fuploads%2FsV0Lkz8x6DzJnh5Vau5f%2FBariff%20twitter%20header.jpg?alt=media&amp;token=9ea3b95d-27ca-4114-bb3f-3b20b9b7a669" alt=""><figcaption></figcaption></figure>

## **Overview** <a href="#overview" id="overview"></a>

Since the beginning of the current cycle, memecoins have played a crucial role in the ecosystem. However, with a market characterized by short attention spans among both new and old participants, the focus has shifted, and memes without utility are showing clear **signs of exhaustion**. Naturally, users are looking for newer narratives. Hence, **Bariff.**

**Bariff** is an onchain protocol that simulates economic competition between two synthetic assets: **CHINA** and **USA.** Each token represents a geopolitical entity in a rules-based system driven by market dynamics and a tailor-made algorithm logic.

Users can deposit **BERA** to mint both tokens, which feature an elastic and mintable supply, collateralized by **BERA**. However, the tokens are designed to function interdependently: when the price of one token rises relative to the other, the protocol automatically adjusts minting and redemption fees to incentivize market participants to rebalance the system.

**Bariff** introduces a fair, algorithmically enforced mechanism to explore competitive monetary dynamics between two opposing forces in a permissionless environment. At its core, **Bariff** operates with a **tuple token system**: **CHINA** and **USA**, which are mutually correlated through a **mathematical equilibrium (K = x . y,** which resembles the classic bonding curve formula used in most AMM&#x73;**)**. These tokens are **minted and burned via a CDP-like mechanism**, where market conditions dictate optimal issuance strategies, using a novel dynamic loan-to-value algorithm.

The protocol is deployed on **Berachain,** leveraging its native token **BERA** as collateral, enabling deep liquidity and strategic onchain market-making opportunities.


---

# 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/readme.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.
